home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / HIControls.xh < prev    next >
Text File  |  1996-05-01  |  438KB  |  14,504 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: HIControls.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxh.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_HIControl_xh
  11. #define SOM_HIControl_xh
  12.  
  13. class HIControl;
  14.  
  15. #define HIControl_MajorVersion 0
  16. #define HIControl_MinorVersion 0
  17.  
  18. /*
  19.  * Passthru lines: File: "C.xh", "before"
  20.  */
  21. #include <Types.h>
  22. #include <HIObjectTypes.h>
  23. #include <HIControlTypes.h>
  24.  
  25. /* C++ SOM defs */
  26. #include <somcls.xh>
  27. #include <somcm.xh>
  28.  
  29. /* C++ parent defs */
  30. #ifndef SOM_HIPanel_xh
  31. #include <HIPanels.xh>
  32. #endif
  33.  
  34. #ifndef HIControl_API
  35. #define HIControl_API
  36. /*
  37.  * -- The Class API
  38.  */
  39.  
  40. /*
  41.  * Start of user-defined types:
  42.  */
  43. class SOMClass;
  44. class SOMObject;
  45. class HIWindow;
  46. class HIEmbeddingPanel;
  47. class HIMenu;
  48.  
  49. /*
  50.  * End of user-defined types.
  51.  */
  52.  
  53. #ifdef OLDIBMSOMAPISUPPORT
  54. #define HIControlCClassData HIControlClassData
  55. #define HIControlNewClass(major,minor) somNewVersionedClassReference(HIControl,major,minor)
  56. #endif
  57.  
  58. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  59. #define HIControlMetaClass SOMClass
  60.  
  61. #if PRAGMA_ALIGN_SUPPORTED
  62. #  pragma options align=power
  63. #endif
  64.  
  65. /* The API to the HIControl class object, and the methods it introduces. */
  66. SOMEXTERN struct HIControlClassDataStructure {
  67. #ifdef OLDIBMSOMAPISUPPORT
  68.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  69. #else
  70.     long zero;
  71. #endif
  72.     somStaticClassInfo *sci;
  73.     somDToken        instanceDataToken;
  74.     long reserved [3];
  75.     somMToken InitControl;
  76.     somMToken SetValue;
  77.     somMToken GetValue;
  78.     somMToken SetMinimum;
  79.     somMToken GetMinimum;
  80.     somMToken SetMaximum;
  81.     somMToken GetMaximum;
  82.     somMToken SimulateSelection;
  83.     somMToken reserved0;
  84.     somMToken reserved1;
  85. } SOMDLINK HIControlClassData;
  86.  
  87. #if PRAGMA_ALIGN_SUPPORTED
  88. #  pragma options align=reset
  89. #endif
  90.  
  91. #if !defined(HIControl_Class_Source) && !defined(SOM_Module_hicontrols_Source)
  92. #if PRAGMA_IMPORT_SUPPORTED
  93. #pragma import list HIControlClassData
  94. #endif
  95. #endif
  96.  
  97.  
  98. /*
  99.  * -- Typedefs for HIControl Method Procedures
  100.  */
  101. SOMEXTERN {
  102. typedef OSStatus   (* SOMLINK somTD_HIControl_InitControl)(HIControl *somSelf, Environment *ev,
  103.         RefLabel* identifier,
  104.         HIWindow* window,
  105.         Rect* bounds,
  106.         SInt32 value,
  107.         SInt32 minimumValue,
  108.         SInt32 maximumValue);
  109. typedef void   (* SOMLINK somTD_HIControl_SetValue)(HIControl *somSelf, Environment *ev,
  110.         SInt32 newValue);
  111. typedef SInt32   (* SOMLINK somTD_HIControl_GetValue)(HIControl *somSelf, Environment *ev);
  112. typedef void   (* SOMLINK somTD_HIControl_SetMinimum)(HIControl *somSelf, Environment *ev,
  113.         SInt32 newMinimum);
  114. typedef SInt32   (* SOMLINK somTD_HIControl_GetMinimum)(HIControl *somSelf, Environment *ev);
  115. typedef void   (* SOMLINK somTD_HIControl_SetMaximum)(HIControl *somSelf, Environment *ev,
  116.         SInt32 newMaximum);
  117. typedef SInt32   (* SOMLINK somTD_HIControl_GetMaximum)(HIControl *somSelf, Environment *ev);
  118. typedef void   (* SOMLINK somTD_HIControl_SimulateSelection)(HIControl *somSelf, Environment *ev);
  119.  
  120. /*
  121.  * -- Typedefs for Inherited Methods
  122.  */
  123. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIControl_GetEmbeddingParent)(HIControl *somSelf, Environment *ev);
  124. typedef OSStatus   (* SOMLINK somTD_HIControl_InitPanel)(HIControl *somSelf, Environment *ev,
  125.         RefLabel* identifier,
  126.         HIWindow* window,
  127.         Rect* bounds);
  128. typedef OSStatus   (* SOMLINK somTD_HIControl_RegisterInterestInAppleEvent)(HIControl *somSelf, Environment *ev,
  129.         AEHandlerTableRef table,
  130.         AEEventClass eventClass,
  131.         AEEventID eventID,
  132.         HIEventRoutingType eventRouting);
  133. typedef boolean   (* SOMLINK somTD_HIControl_HasValidContent)(HIControl *somSelf, Environment *ev);
  134. typedef OSStatus   (* SOMLINK somTD_HIControl_GetDeepCollectionItemData)(HIControl *somSelf, Environment *ev,
  135.         CollectionTag tag,
  136.         SInt32 id,
  137.         ByteCount sizeAllowed,
  138.         ByteCount* sizeReturned,
  139.         void* itemData);
  140. typedef HIWindow*   (* SOMLINK somTD_HIControl_GetWindow)(HIControl *somSelf, Environment *ev);
  141. typedef CGrafPtr   (* SOMLINK somTD_HIControl_GetPort)(HIControl *somSelf, Environment *ev);
  142. typedef void   (* SOMLINK somTD_HIControl_GetRefLabel)(HIControl *somSelf, Environment *ev,
  143.         RefLabel* identifier);
  144. typedef Collection   (* SOMLINK somTD_HIControl_GetCollection)(HIControl *somSelf, Environment *ev);
  145. typedef OSStatus   (* SOMLINK somTD_HIControl_Init)(HIControl *somSelf, Environment *ev,
  146.         RefLabel* identifier,
  147.         Rect* boundingRect);
  148. typedef void   (* SOMLINK somTD_HIControl_Terminate)(HIControl *somSelf, Environment *ev);
  149. typedef HIObject*   (* SOMLINK somTD_HIControl_Clone)(HIControl *somSelf, Environment *ev);
  150. typedef void   (* SOMLINK somTD_HIControl_Release)(HIControl *somSelf, Environment *ev);
  151. typedef ItemCount   (* SOMLINK somTD_HIControl_GetOwnerCount)(HIControl *somSelf, Environment *ev);
  152. typedef OSStatus   (* SOMLINK somTD_HIControl_InitFromAERecord)(HIControl *somSelf, Environment *ev,
  153.         AESubDesc* baseInitializerData,
  154.         AESubDesc* initializerDataForClass,
  155.         HIAERecordDataFormat dataFormat);
  156. typedef OSStatus   (* SOMLINK somTD_HIControl_WriteToAERecord)(HIControl *somSelf, Environment *ev,
  157.         AERecord* dataForSubclass,
  158.         AERecord* objectData,
  159.         HIAERecordDataFormat dataFormat);
  160. typedef void   (* SOMLINK somTD_HIControl_CalculateOptimalSize)(HIControl *somSelf, Environment *ev,
  161.         SInt16* optimalWidth,
  162.         SInt16* optimalHeight);
  163. typedef void   (* SOMLINK somTD_HIControl_GetBoundingRect)(HIControl *somSelf, Environment *ev,
  164.         HICoordinateSystem coordinate,
  165.         Rect* boundingRect);
  166. typedef void   (* SOMLINK somTD_HIControl_SetBoundingRect)(HIControl *somSelf, Environment *ev,
  167.         HICoordinateSystem coordinate,
  168.         Rect* newBoundingRect);
  169. typedef void   (* SOMLINK somTD_HIControl_SetPosition)(HIControl *somSelf, Environment *ev,
  170.         HICoordinateSystem coordinate,
  171.         Point* newPosition);
  172. typedef void   (* SOMLINK somTD_HIControl_SetSize)(HIControl *somSelf, Environment *ev,
  173.         SInt16 width,
  174.         SInt16 height);
  175. typedef void   (* SOMLINK somTD_HIControl_GetUpdateRect)(HIControl *somSelf, Environment *ev,
  176.         HICoordinateSystem coordinate,
  177.         Rect* updateRect);
  178. typedef void   (* SOMLINK somTD_HIControl_Enable)(HIControl *somSelf, Environment *ev);
  179. typedef void   (* SOMLINK somTD_HIControl_Disable)(HIControl *somSelf, Environment *ev);
  180. typedef boolean   (* SOMLINK somTD_HIControl_IsEnabled)(HIControl *somSelf, Environment *ev);
  181. typedef void   (* SOMLINK somTD_HIControl_Show)(HIControl *somSelf, Environment *ev);
  182. typedef void   (* SOMLINK somTD_HIControl_Hide)(HIControl *somSelf, Environment *ev);
  183. typedef boolean   (* SOMLINK somTD_HIControl_IsVisible)(HIControl *somSelf, Environment *ev);
  184. typedef OSStatus   (* SOMLINK somTD_HIControl_HandleAppleEvent)(HIControl *somSelf, Environment *ev,
  185.         AEEventClass eventClass,
  186.         AEEventID eventID,
  187.         AppleEvent* theEvent,
  188.         AppleEvent* reply,
  189.         AEHandlerTableRef handlerTableRef);
  190. typedef OSStatus   (* SOMLINK somTD_HIControl_HandleActivate)(HIControl *somSelf, Environment *ev,
  191.         AppleEvent* theEvent,
  192.         AppleEvent* reply,
  193.         AEHandlerTableRef handlerTableRef);
  194. typedef OSStatus   (* SOMLINK somTD_HIControl_HandleDeactivate)(HIControl *somSelf, Environment *ev,
  195.         AppleEvent* theEvent,
  196.         AppleEvent* reply,
  197.         AEHandlerTableRef handlerTableRef);
  198. typedef OSStatus   (* SOMLINK somTD_HIControl_HandleNavigation)(HIControl *somSelf, Environment *ev,
  199.         SInt8 key,
  200.         SInt8 keyCode,
  201.         EventModifiers modifiers,
  202.         AppleEvent* theEvent,
  203.         AppleEvent* reply,
  204.         AEHandlerTableRef handlerTableRef);
  205. typedef OSStatus   (* SOMLINK somTD_HIControl_HandleMouseDownInContent)(HIControl *somSelf, Environment *ev,
  206.         Point* portLocalWhere,
  207.         EventModifiers modifiers,
  208.         AppleEvent* theEvent,
  209.         AppleEvent* reply,
  210.         AEHandlerTableRef handlerTableRef);
  211. typedef OSStatus   (* SOMLINK somTD_HIControl_HandleMouseMovedInContent)(HIControl *somSelf, Environment *ev,
  212.         Point* portLocalWhere,
  213.         EventModifiers modifiers,
  214.         AppleEvent* theEvent,
  215.         AppleEvent* reply,
  216.         AEHandlerTableRef handlerTableRef);
  217. typedef OSStatus   (* SOMLINK somTD_HIControl_HandleMouseStoppedMovingInContent)(HIControl *somSelf, Environment *ev,
  218.         Point* portLocalWhere,
  219.         EventModifiers modifiers,
  220.         AppleEvent* theEvent,
  221.         AppleEvent* reply,
  222.         AEHandlerTableRef handlerTableRef);
  223. typedef OSStatus   (* SOMLINK somTD_HIControl_HandleMouseUpInContent)(HIControl *somSelf, Environment *ev,
  224.         Point* portLocalWhere,
  225.         EventModifiers modifiers,
  226.         AppleEvent* theEvent,
  227.         AppleEvent* reply,
  228.         AEHandlerTableRef handlerTableRef);
  229. typedef void   (* SOMLINK somTD_HIControl_TakeUserInputFocus)(HIControl *somSelf, Environment *ev);
  230. typedef void   (* SOMLINK somTD_HIControl_ReleaseUserInputFocus)(HIControl *somSelf, Environment *ev);
  231. typedef boolean   (* SOMLINK somTD_HIControl_HasUserInputFocus)(HIControl *somSelf, Environment *ev);
  232. typedef boolean   (* SOMLINK somTD_HIControl_CanReleaseUserInputFocus)(HIControl *somSelf, Environment *ev);
  233. typedef void   (* SOMLINK somTD_HIControl_SetUserInputFocusFlags)(HIControl *somSelf, Environment *ev,
  234.         HIUserInputFocusFlags flags);
  235. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIControl_GetUserInputFocusFlags)(HIControl *somSelf, Environment *ev);
  236. typedef OSStatus   (* SOMLINK somTD_HIControl_SetTitle)(HIControl *somSelf, Environment *ev,
  237.         ConstHIImageRef title,
  238.         HIAdoptionFlags disposalAdoptionFlags);
  239. typedef OSStatus   (* SOMLINK somTD_HIControl_GetTitle)(HIControl *somSelf, Environment *ev,
  240.         HIImageRef* title);
  241. typedef void   (* SOMLINK somTD_HIControl_Draw)(HIControl *somSelf, Environment *ev,
  242.         CGrafPtr whichPort,
  243.         RgnHandle drawRgn);
  244. typedef void   (* SOMLINK somTD_HIControl_Erase)(HIControl *somSelf, Environment *ev,
  245.         CGrafPtr whichPort,
  246.         RgnHandle eraseRgn);
  247. typedef void   (* SOMLINK somTD_HIControl_Invalidate)(HIControl *somSelf, Environment *ev);
  248. typedef HIDrawingMode   (* SOMLINK somTD_HIControl_GetDrawingMode)(HIControl *somSelf, Environment *ev);
  249. typedef void   (* SOMLINK somTD_HIControl_SetDrawingMode)(HIControl *somSelf, Environment *ev,
  250.         HIDrawingMode drawingMode);
  251. typedef void   (* SOMLINK somTD_HIControl_SetBackgroundPattern)(HIControl *somSelf, Environment *ev,
  252.         PixPatHandle backgroundPattern);
  253. typedef PixPatHandle   (* SOMLINK somTD_HIControl_GetBackgroundPattern)(HIControl *somSelf, Environment *ev);
  254. typedef void   (* SOMLINK somTD_HIControl_Cut)(HIControl *somSelf, Environment *ev);
  255. typedef void   (* SOMLINK somTD_HIControl_Copy)(HIControl *somSelf, Environment *ev);
  256. typedef void   (* SOMLINK somTD_HIControl_Paste)(HIControl *somSelf, Environment *ev);
  257. typedef void   (* SOMLINK somTD_HIControl_Clear)(HIControl *somSelf, Environment *ev);
  258. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIControl_GetClipboardSupportFlags)(HIControl *somSelf, Environment *ev);
  259. typedef OSStatus   (* SOMLINK somTD_HIControl_AddStateChangeCallback)(HIControl *somSelf, Environment *ev,
  260.         HIStateChangeCallbackProcPtr changedStateCallback,
  261.         HIStateChangeCallbackRef* newCallbackRef);
  262. typedef OSStatus   (* SOMLINK somTD_HIControl_RemoveStateChangeCallback)(HIControl *somSelf, Environment *ev,
  263.         HIStateChangeCallbackRef callbackRefToRemove);
  264. typedef OSStatus   (* SOMLINK somTD_HIControl_GetHIObjectFromRefLabel)(Environment *ev,
  265.         RefLabel* identifier,
  266.         ItemCount requestedObjects,
  267.         ItemCount* totalObjects,
  268.         HIObject** theObjects);
  269. typedef OSStatus   (* SOMLINK somTD_HIControl_GetNewHIObject)(Environment *ev,
  270.         AESubDesc* objectInitializer,
  271.         HIObject** newObject);
  272. typedef OSStatus   (* SOMLINK somTD_HIControl_GetNewHIObjectFromResource)(Environment *ev,
  273.         ResID objectInitializerResourceID,
  274.         HIObject** newObject);
  275. typedef void   (* SOMLINK somTD_HIControl_DrawContent)(HIControl *somSelf, Environment *ev,
  276.         CGrafPtr whichPort,
  277.         RgnHandle drawRgn);
  278. typedef void   (* SOMLINK somTD_HIControl_EraseContent)(HIControl *somSelf, Environment *ev,
  279.         CGrafPtr whichPort,
  280.         RgnHandle regionToErase);
  281. typedef void   (* SOMLINK somTD_HIControl_TranslatePoint)(HIControl *somSelf, Environment *ev,
  282.         HICoordinateSystem translateFrom,
  283.         HICoordinateSystem translateTo,
  284.         Point* sourcePoint,
  285.         Point* translatedPoint);
  286. typedef void   (* SOMLINK somTD_HIControl_TranslateRect)(HIControl *somSelf, Environment *ev,
  287.         HICoordinateSystem translateFrom,
  288.         HICoordinateSystem translateTo,
  289.         Rect* sourceRect,
  290.         Rect* translatedRect);
  291. typedef void   (* SOMLINK somTD_HIControl_StateChanged)(HIControl *somSelf, Environment *ev,
  292.         HIStateChangeCodeCreator selectorCreator,
  293.         HIStateChangeCode changedCode);
  294. typedef void   (* SOMLINK somTD_HIControl_SetClipboardSupportFlags)(HIControl *somSelf, Environment *ev,
  295.         HIClipboardSupportFlags flags);
  296. typedef OSStatus   (* SOMLINK somTD_HIControl_Verify)(HIControl *somSelf, Environment *ev);
  297. typedef void   (* SOMLINK somTD_HIControl_somInit)(HIControl *somSelf);
  298. typedef void   (* SOMLINK somTD_HIControl_somUninit)(HIControl *somSelf);
  299. typedef SOMObject*   (* SOMLINK somTD_HIControl_somDuplicateReference)(HIControl *somSelf);
  300. typedef boolean   (* SOMLINK somTD_HIControl_somCompareReference)(HIControl *somSelf,
  301.         SOMObject* anObject);
  302. typedef SOMObject*   (* SOMLINK somTD_HIControl_somRelease)(HIControl *somSelf);
  303. typedef void   (* SOMLINK somTD_HIControl_somFree)(HIControl *somSelf);
  304. typedef boolean   (* SOMLINK somTD_HIControl_somCanDelete)(HIControl *somSelf);
  305. typedef SOMClass*   (* SOMLINK somTD_HIControl_somGetClass)(HIControl *somSelf);
  306. typedef corbastring   (* SOMLINK somTD_HIControl_somGetClassName)(HIControl *somSelf);
  307. typedef long   (* SOMLINK somTD_HIControl_somGetSize)(HIControl *somSelf);
  308. typedef boolean   (* SOMLINK somTD_HIControl_somIsA)(HIControl *somSelf,
  309.         SOMClass* aClassObj);
  310. typedef boolean   (* SOMLINK somTD_HIControl_somRespondsTo)(HIControl *somSelf,
  311.         somId mId);
  312. typedef boolean   (* SOMLINK somTD_HIControl_somIsInstanceOf)(HIControl *somSelf,
  313.         SOMClass* aClassObj);
  314. typedef boolean   (* SOMLINK somTD_HIControl_somDispatch)(HIControl *somSelf,
  315.         somToken* retValue,
  316.         somId methodId,
  317.         va_list ap);
  318. typedef boolean   (* SOMLINK somTD_HIControl_somClassDispatch)(HIControl *somSelf,
  319.         SOMClass* clsObj,
  320.         somToken* retValue,
  321.         somId methodId,
  322.         va_list ap);
  323. typedef boolean   (* SOMLINK somTD_HIControl_somCastObj)(HIControl *somSelf,
  324.         SOMClass* cls);
  325. typedef boolean   (* SOMLINK somTD_HIControl_somResetObj)(HIControl *somSelf);
  326. typedef SOMObject*   (* SOMLINK somTD_HIControl_somPrintSelf)(HIControl *somSelf);
  327. typedef void   (* SOMLINK somTD_HIControl_somDumpSelf)(HIControl *somSelf,
  328.         long level);
  329. typedef void   (* SOMLINK somTD_HIControl_somDumpSelfInt)(HIControl *somSelf,
  330.         long level);
  331. }
  332.  
  333. #endif /* HIControl_API */
  334.  
  335.  
  336. /*
  337.  * -- This emitter treats Method Tokens as Thunks by default.
  338.  * -- Use the sc modifier "nothunks" to change this default
  339.  */
  340. #undef somresolve_
  341. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  342.  
  343. /*
  344.  * -- The C++ Wrapper Class for HIControl
  345.  */
  346. class HIControl : public HIPanel
  347. {
  348. public:
  349.  
  350. // HIControl::new registers use of the class object, and then uses somNew
  351. // to allocate memory and load the object method table pointer. 
  352. void *operator new(size_t size)
  353. {
  354.     SOM_IgnoreWarning(size);
  355.     // Allocate memory using the default allocator for HIControl, and
  356.     // clear mem & set method table pointer, call basic initialization
  357.     return (void*) somNewObject(HIControl);
  358. }
  359.  
  360. // HIControl::delete uses the default deallocator for the object's class.
  361. void operator delete(void * obj)
  362. {
  363.     if (obj) {
  364.         SOM_Resolve(obj,SOMObject,somFree)
  365.            ( (SOMObject*) obj );
  366.     }
  367. }
  368.  
  369. /* method: InitControl */
  370. OSStatus   InitControl(Environment *ev,
  371.         RefLabel* identifier,
  372.         HIWindow* window,
  373.         Rect* bounds,
  374.         SInt32 value,
  375.         SInt32 minimumValue,
  376.         SInt32 maximumValue)
  377. {
  378.    return SOM_ResolveD(this,HIControl,HIControl,InitControl)
  379.     (this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
  380. }
  381.  
  382. /* method: SetValue */
  383. void   SetValue(Environment *ev,
  384.         SInt32 newValue)
  385. {
  386.    SOM_ResolveD(this,HIControl,HIControl,SetValue)
  387.     (this,ev,newValue);
  388. }
  389.  
  390. /* method: GetValue */
  391. SInt32   GetValue(Environment *ev)
  392. {
  393.    return SOM_ResolveD(this,HIControl,HIControl,GetValue)
  394.     (this,ev);
  395. }
  396.  
  397. /* method: SetMinimum */
  398. void   SetMinimum(Environment *ev,
  399.         SInt32 newMinimum)
  400. {
  401.    SOM_ResolveD(this,HIControl,HIControl,SetMinimum)
  402.     (this,ev,newMinimum);
  403. }
  404.  
  405. /* method: GetMinimum */
  406. SInt32   GetMinimum(Environment *ev)
  407. {
  408.    return SOM_ResolveD(this,HIControl,HIControl,GetMinimum)
  409.     (this,ev);
  410. }
  411.  
  412. /* method: SetMaximum */
  413. void   SetMaximum(Environment *ev,
  414.         SInt32 newMaximum)
  415. {
  416.    SOM_ResolveD(this,HIControl,HIControl,SetMaximum)
  417.     (this,ev,newMaximum);
  418. }
  419.  
  420. /* method: GetMaximum */
  421. SInt32   GetMaximum(Environment *ev)
  422. {
  423.    return SOM_ResolveD(this,HIControl,HIControl,GetMaximum)
  424.     (this,ev);
  425. }
  426.  
  427. /* method: SimulateSelection */
  428. void   SimulateSelection(Environment *ev)
  429. {
  430.    SOM_ResolveD(this,HIControl,HIControl,SimulateSelection)
  431.     (this,ev);
  432. }
  433.  
  434.  
  435. /*
  436.  * -- Inherited methods
  437.  */
  438. /* method: GetEmbeddingParent */
  439. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  440. {
  441.    return SOM_ResolveD(this,HIControl,HIPanel,GetEmbeddingParent)
  442.     (this,ev);
  443. }
  444.  
  445. /* method: InitPanel */
  446. OSStatus   InitPanel(Environment *ev,
  447.         RefLabel* identifier,
  448.         HIWindow* window,
  449.         Rect* bounds)
  450. {
  451.    return SOM_ResolveD(this,HIControl,HIPanel,InitPanel)
  452.     (this,ev,identifier,window,bounds);
  453. }
  454.  
  455. /* method: RegisterInterestInAppleEvent */
  456. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  457.         AEHandlerTableRef table,
  458.         AEEventClass eventClass,
  459.         AEEventID eventID,
  460.         HIEventRoutingType eventRouting)
  461. {
  462.    return SOM_ResolveD(this,HIControl,HIPanel,RegisterInterestInAppleEvent)
  463.     (this,ev,table,eventClass,eventID,eventRouting);
  464. }
  465.  
  466. /* method: HasValidContent */
  467. boolean   HasValidContent(Environment *ev)
  468. {
  469.    return SOM_ResolveD(this,HIControl,HIPanel,HasValidContent)
  470.     (this,ev);
  471. }
  472.  
  473. /* method: GetDeepCollectionItemData */
  474. OSStatus   GetDeepCollectionItemData(Environment *ev,
  475.         CollectionTag tag,
  476.         SInt32 id,
  477.         ByteCount sizeAllowed,
  478.         ByteCount* sizeReturned,
  479.         void* itemData)
  480. {
  481.    return SOM_ResolveD(this,HIControl,HIPanel,GetDeepCollectionItemData)
  482.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  483. }
  484.  
  485. /* method: GetWindow */
  486. HIWindow*   GetWindow(Environment *ev)
  487. {
  488.    return SOM_ResolveD(this,HIControl,HIObject,GetWindow)
  489.     (this,ev);
  490. }
  491.  
  492. /* method: GetPort */
  493. CGrafPtr   GetPort(Environment *ev)
  494. {
  495.    return SOM_ResolveD(this,HIControl,HIObject,GetPort)
  496.     (this,ev);
  497. }
  498.  
  499. /* method: GetRefLabel */
  500. void   GetRefLabel(Environment *ev,
  501.         RefLabel* identifier)
  502. {
  503.    SOM_ResolveD(this,HIControl,HIObject,GetRefLabel)
  504.     (this,ev,identifier);
  505. }
  506.  
  507. /* method: GetCollection */
  508. Collection   GetCollection(Environment *ev)
  509. {
  510.    return SOM_ResolveD(this,HIControl,HIObject,GetCollection)
  511.     (this,ev);
  512. }
  513.  
  514. /* method: Init */
  515. OSStatus   Init(Environment *ev,
  516.         RefLabel* identifier,
  517.         Rect* boundingRect)
  518. {
  519.    return SOM_ResolveD(this,HIControl,HIObject,Init)
  520.     (this,ev,identifier,boundingRect);
  521. }
  522.  
  523. /* method: Terminate */
  524. void   Terminate(Environment *ev)
  525. {
  526.    SOM_ResolveD(this,HIControl,HIObject,Terminate)
  527.     (this,ev);
  528. }
  529.  
  530. /* method: Clone */
  531. HIObject*   Clone(Environment *ev)
  532. {
  533.    return SOM_ResolveD(this,HIControl,HIObject,Clone)
  534.     (this,ev);
  535. }
  536.  
  537. /* method: Release */
  538. void   Release(Environment *ev)
  539. {
  540.    SOM_ResolveD(this,HIControl,HIObject,Release)
  541.     (this,ev);
  542. }
  543.  
  544. /* method: GetOwnerCount */
  545. ItemCount   GetOwnerCount(Environment *ev)
  546. {
  547.    return SOM_ResolveD(this,HIControl,HIObject,GetOwnerCount)
  548.     (this,ev);
  549. }
  550.  
  551. /* method: InitFromAERecord */
  552. OSStatus   InitFromAERecord(Environment *ev,
  553.         AESubDesc* baseInitializerData,
  554.         AESubDesc* initializerDataForClass,
  555.         HIAERecordDataFormat dataFormat)
  556. {
  557.    return SOM_ResolveD(this,HIControl,HIObject,InitFromAERecord)
  558.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  559. }
  560.  
  561. /* method: WriteToAERecord */
  562. OSStatus   WriteToAERecord(Environment *ev,
  563.         AERecord* dataForSubclass,
  564.         AERecord* objectData,
  565.         HIAERecordDataFormat dataFormat)
  566. {
  567.    return SOM_ResolveD(this,HIControl,HIObject,WriteToAERecord)
  568.     (this,ev,dataForSubclass,objectData,dataFormat);
  569. }
  570.  
  571. /* method: CalculateOptimalSize */
  572. void   CalculateOptimalSize(Environment *ev,
  573.         SInt16* optimalWidth,
  574.         SInt16* optimalHeight)
  575. {
  576.    SOM_ResolveD(this,HIControl,HIObject,CalculateOptimalSize)
  577.     (this,ev,optimalWidth,optimalHeight);
  578. }
  579.  
  580. /* method: GetBoundingRect */
  581. void   GetBoundingRect(Environment *ev,
  582.         HICoordinateSystem coordinate,
  583.         Rect* boundingRect)
  584. {
  585.    SOM_ResolveD(this,HIControl,HIObject,GetBoundingRect)
  586.     (this,ev,coordinate,boundingRect);
  587. }
  588.  
  589. /* method: SetBoundingRect */
  590. void   SetBoundingRect(Environment *ev,
  591.         HICoordinateSystem coordinate,
  592.         Rect* newBoundingRect)
  593. {
  594.    SOM_ResolveD(this,HIControl,HIObject,SetBoundingRect)
  595.     (this,ev,coordinate,newBoundingRect);
  596. }
  597.  
  598. /* method: SetPosition */
  599. void   SetPosition(Environment *ev,
  600.         HICoordinateSystem coordinate,
  601.         Point* newPosition)
  602. {
  603.    SOM_ResolveD(this,HIControl,HIObject,SetPosition)
  604.     (this,ev,coordinate,newPosition);
  605. }
  606.  
  607. /* method: SetSize */
  608. void   SetSize(Environment *ev,
  609.         SInt16 width,
  610.         SInt16 height)
  611. {
  612.    SOM_ResolveD(this,HIControl,HIObject,SetSize)
  613.     (this,ev,width,height);
  614. }
  615.  
  616. /* method: GetUpdateRect */
  617. void   GetUpdateRect(Environment *ev,
  618.         HICoordinateSystem coordinate,
  619.         Rect* updateRect)
  620. {
  621.    SOM_ResolveD(this,HIControl,HIObject,GetUpdateRect)
  622.     (this,ev,coordinate,updateRect);
  623. }
  624.  
  625. /* method: Enable */
  626. void   Enable(Environment *ev)
  627. {
  628.    SOM_ResolveD(this,HIControl,HIObject,Enable)
  629.     (this,ev);
  630. }
  631.  
  632. /* method: Disable */
  633. void   Disable(Environment *ev)
  634. {
  635.    SOM_ResolveD(this,HIControl,HIObject,Disable)
  636.     (this,ev);
  637. }
  638.  
  639. /* method: IsEnabled */
  640. boolean   IsEnabled(Environment *ev)
  641. {
  642.    return SOM_ResolveD(this,HIControl,HIObject,IsEnabled)
  643.     (this,ev);
  644. }
  645.  
  646. /* method: Show */
  647. void   Show(Environment *ev)
  648. {
  649.    SOM_ResolveD(this,HIControl,HIObject,Show)
  650.     (this,ev);
  651. }
  652.  
  653. /* method: Hide */
  654. void   Hide(Environment *ev)
  655. {
  656.    SOM_ResolveD(this,HIControl,HIObject,Hide)
  657.     (this,ev);
  658. }
  659.  
  660. /* method: IsVisible */
  661. boolean   IsVisible(Environment *ev)
  662. {
  663.    return SOM_ResolveD(this,HIControl,HIObject,IsVisible)
  664.     (this,ev);
  665. }
  666.  
  667. /* method: HandleAppleEvent */
  668. OSStatus   HandleAppleEvent(Environment *ev,
  669.         AEEventClass eventClass,
  670.         AEEventID eventID,
  671.         AppleEvent* theEvent,
  672.         AppleEvent* reply,
  673.         AEHandlerTableRef handlerTableRef)
  674. {
  675.    return SOM_ResolveD(this,HIControl,HIObject,HandleAppleEvent)
  676.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  677. }
  678.  
  679. /* method: HandleActivate */
  680. OSStatus   HandleActivate(Environment *ev,
  681.         AppleEvent* theEvent,
  682.         AppleEvent* reply,
  683.         AEHandlerTableRef handlerTableRef)
  684. {
  685.    return SOM_ResolveD(this,HIControl,HIObject,HandleActivate)
  686.     (this,ev,theEvent,reply,handlerTableRef);
  687. }
  688.  
  689. /* method: HandleDeactivate */
  690. OSStatus   HandleDeactivate(Environment *ev,
  691.         AppleEvent* theEvent,
  692.         AppleEvent* reply,
  693.         AEHandlerTableRef handlerTableRef)
  694. {
  695.    return SOM_ResolveD(this,HIControl,HIObject,HandleDeactivate)
  696.     (this,ev,theEvent,reply,handlerTableRef);
  697. }
  698.  
  699. /* method: HandleNavigation */
  700. OSStatus   HandleNavigation(Environment *ev,
  701.         SInt8 key,
  702.         SInt8 keyCode,
  703.         EventModifiers modifiers,
  704.         AppleEvent* theEvent,
  705.         AppleEvent* reply,
  706.         AEHandlerTableRef handlerTableRef)
  707. {
  708.    return SOM_ResolveD(this,HIControl,HIObject,HandleNavigation)
  709.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  710. }
  711.  
  712. /* method: HandleMouseDownInContent */
  713. OSStatus   HandleMouseDownInContent(Environment *ev,
  714.         Point* portLocalWhere,
  715.         EventModifiers modifiers,
  716.         AppleEvent* theEvent,
  717.         AppleEvent* reply,
  718.         AEHandlerTableRef handlerTableRef)
  719. {
  720.    return SOM_ResolveD(this,HIControl,HIObject,HandleMouseDownInContent)
  721.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  722. }
  723.  
  724. /* method: HandleMouseMovedInContent */
  725. OSStatus   HandleMouseMovedInContent(Environment *ev,
  726.         Point* portLocalWhere,
  727.         EventModifiers modifiers,
  728.         AppleEvent* theEvent,
  729.         AppleEvent* reply,
  730.         AEHandlerTableRef handlerTableRef)
  731. {
  732.    return SOM_ResolveD(this,HIControl,HIObject,HandleMouseMovedInContent)
  733.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  734. }
  735.  
  736. /* method: HandleMouseStoppedMovingInContent */
  737. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  738.         Point* portLocalWhere,
  739.         EventModifiers modifiers,
  740.         AppleEvent* theEvent,
  741.         AppleEvent* reply,
  742.         AEHandlerTableRef handlerTableRef)
  743. {
  744.    return SOM_ResolveD(this,HIControl,HIObject,HandleMouseStoppedMovingInContent)
  745.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  746. }
  747.  
  748. /* method: HandleMouseUpInContent */
  749. OSStatus   HandleMouseUpInContent(Environment *ev,
  750.         Point* portLocalWhere,
  751.         EventModifiers modifiers,
  752.         AppleEvent* theEvent,
  753.         AppleEvent* reply,
  754.         AEHandlerTableRef handlerTableRef)
  755. {
  756.    return SOM_ResolveD(this,HIControl,HIObject,HandleMouseUpInContent)
  757.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  758. }
  759.  
  760. /* method: TakeUserInputFocus */
  761. void   TakeUserInputFocus(Environment *ev)
  762. {
  763.    SOM_ResolveD(this,HIControl,HIObject,TakeUserInputFocus)
  764.     (this,ev);
  765. }
  766.  
  767. /* method: ReleaseUserInputFocus */
  768. void   ReleaseUserInputFocus(Environment *ev)
  769. {
  770.    SOM_ResolveD(this,HIControl,HIObject,ReleaseUserInputFocus)
  771.     (this,ev);
  772. }
  773.  
  774. /* method: HasUserInputFocus */
  775. boolean   HasUserInputFocus(Environment *ev)
  776. {
  777.    return SOM_ResolveD(this,HIControl,HIObject,HasUserInputFocus)
  778.     (this,ev);
  779. }
  780.  
  781. /* method: CanReleaseUserInputFocus */
  782. boolean   CanReleaseUserInputFocus(Environment *ev)
  783. {
  784.    return SOM_ResolveD(this,HIControl,HIObject,CanReleaseUserInputFocus)
  785.     (this,ev);
  786. }
  787.  
  788. /* method: SetUserInputFocusFlags */
  789. void   SetUserInputFocusFlags(Environment *ev,
  790.         HIUserInputFocusFlags flags)
  791. {
  792.    SOM_ResolveD(this,HIControl,HIObject,SetUserInputFocusFlags)
  793.     (this,ev,flags);
  794. }
  795.  
  796. /* method: GetUserInputFocusFlags */
  797. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  798. {
  799.    return SOM_ResolveD(this,HIControl,HIObject,GetUserInputFocusFlags)
  800.     (this,ev);
  801. }
  802.  
  803. /* method: SetTitle */
  804. OSStatus   SetTitle(Environment *ev,
  805.         ConstHIImageRef title,
  806.         HIAdoptionFlags disposalAdoptionFlags)
  807. {
  808.    return SOM_ResolveD(this,HIControl,HIObject,SetTitle)
  809.     (this,ev,title,disposalAdoptionFlags);
  810. }
  811.  
  812. /* method: GetTitle */
  813. OSStatus   GetTitle(Environment *ev,
  814.         HIImageRef* title)
  815. {
  816.    return SOM_ResolveD(this,HIControl,HIObject,GetTitle)
  817.     (this,ev,title);
  818. }
  819.  
  820. /* method: Draw */
  821. void   Draw(Environment *ev,
  822.         CGrafPtr whichPort,
  823.         RgnHandle drawRgn)
  824. {
  825.    SOM_ResolveD(this,HIControl,HIObject,Draw)
  826.     (this,ev,whichPort,drawRgn);
  827. }
  828.  
  829. /* method: Erase */
  830. void   Erase(Environment *ev,
  831.         CGrafPtr whichPort,
  832.         RgnHandle eraseRgn)
  833. {
  834.    SOM_ResolveD(this,HIControl,HIObject,Erase)
  835.     (this,ev,whichPort,eraseRgn);
  836. }
  837.  
  838. /* method: Invalidate */
  839. void   Invalidate(Environment *ev)
  840. {
  841.    SOM_ResolveD(this,HIControl,HIObject,Invalidate)
  842.     (this,ev);
  843. }
  844.  
  845. /* method: GetDrawingMode */
  846. HIDrawingMode   GetDrawingMode(Environment *ev)
  847. {
  848.    return SOM_ResolveD(this,HIControl,HIObject,GetDrawingMode)
  849.     (this,ev);
  850. }
  851.  
  852. /* method: SetDrawingMode */
  853. void   SetDrawingMode(Environment *ev,
  854.         HIDrawingMode drawingMode)
  855. {
  856.    SOM_ResolveD(this,HIControl,HIObject,SetDrawingMode)
  857.     (this,ev,drawingMode);
  858. }
  859.  
  860. /* method: SetBackgroundPattern */
  861. void   SetBackgroundPattern(Environment *ev,
  862.         PixPatHandle backgroundPattern)
  863. {
  864.    SOM_ResolveD(this,HIControl,HIObject,SetBackgroundPattern)
  865.     (this,ev,backgroundPattern);
  866. }
  867.  
  868. /* method: GetBackgroundPattern */
  869. PixPatHandle   GetBackgroundPattern(Environment *ev)
  870. {
  871.    return SOM_ResolveD(this,HIControl,HIObject,GetBackgroundPattern)
  872.     (this,ev);
  873. }
  874.  
  875. /* method: Cut */
  876. void   Cut(Environment *ev)
  877. {
  878.    SOM_ResolveD(this,HIControl,HIObject,Cut)
  879.     (this,ev);
  880. }
  881.  
  882. /* method: Copy */
  883. void   Copy(Environment *ev)
  884. {
  885.    SOM_ResolveD(this,HIControl,HIObject,Copy)
  886.     (this,ev);
  887. }
  888.  
  889. /* method: Paste */
  890. void   Paste(Environment *ev)
  891. {
  892.    SOM_ResolveD(this,HIControl,HIObject,Paste)
  893.     (this,ev);
  894. }
  895.  
  896. /* method: Clear */
  897. void   Clear(Environment *ev)
  898. {
  899.    SOM_ResolveD(this,HIControl,HIObject,Clear)
  900.     (this,ev);
  901. }
  902.  
  903. /* method: GetClipboardSupportFlags */
  904. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  905. {
  906.    return SOM_ResolveD(this,HIControl,HIObject,GetClipboardSupportFlags)
  907.     (this,ev);
  908. }
  909.  
  910. /* method: AddStateChangeCallback */
  911. OSStatus   AddStateChangeCallback(Environment *ev,
  912.         HIStateChangeCallbackProcPtr changedStateCallback,
  913.         HIStateChangeCallbackRef* newCallbackRef)
  914. {
  915.    return SOM_ResolveD(this,HIControl,HIObject,AddStateChangeCallback)
  916.     (this,ev,changedStateCallback,newCallbackRef);
  917. }
  918.  
  919. /* method: RemoveStateChangeCallback */
  920. OSStatus   RemoveStateChangeCallback(Environment *ev,
  921.         HIStateChangeCallbackRef callbackRefToRemove)
  922. {
  923.    return SOM_ResolveD(this,HIControl,HIObject,RemoveStateChangeCallback)
  924.     (this,ev,callbackRefToRemove);
  925. }
  926.  
  927. /* noself procedure: GetHIObjectFromRefLabel */
  928. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  929.         RefLabel* identifier,
  930.         ItemCount requestedObjects,
  931.         ItemCount* totalObjects,
  932.         HIObject** theObjects)
  933. {
  934. return ((somTD_HIControl_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  935.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  936. }
  937.  
  938. /* noself procedure: GetNewHIObject */
  939. static OSStatus   GetNewHIObject(Environment *ev,
  940.         AESubDesc* objectInitializer,
  941.         HIObject** newObject)
  942. {
  943. return ((somTD_HIControl_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  944.     (ev,objectInitializer,newObject);
  945. }
  946.  
  947. /* noself procedure: GetNewHIObjectFromResource */
  948. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  949.         ResID objectInitializerResourceID,
  950.         HIObject** newObject)
  951. {
  952. return ((somTD_HIControl_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  953.     (ev,objectInitializerResourceID,newObject);
  954. }
  955.  
  956. /* method: DrawContent */
  957. void   DrawContent(Environment *ev,
  958.         CGrafPtr whichPort,
  959.         RgnHandle drawRgn)
  960. {
  961.    SOM_ResolveD(this,HIControl,HIObject,DrawContent)
  962.     (this,ev,whichPort,drawRgn);
  963. }
  964.  
  965. /* method: EraseContent */
  966. void   EraseContent(Environment *ev,
  967.         CGrafPtr whichPort,
  968.         RgnHandle regionToErase)
  969. {
  970.    SOM_ResolveD(this,HIControl,HIObject,EraseContent)
  971.     (this,ev,whichPort,regionToErase);
  972. }
  973.  
  974. /* method: TranslatePoint */
  975. void   TranslatePoint(Environment *ev,
  976.         HICoordinateSystem translateFrom,
  977.         HICoordinateSystem translateTo,
  978.         Point* sourcePoint,
  979.         Point* translatedPoint)
  980. {
  981.    SOM_ResolveD(this,HIControl,HIObject,TranslatePoint)
  982.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  983. }
  984.  
  985. /* method: TranslateRect */
  986. void   TranslateRect(Environment *ev,
  987.         HICoordinateSystem translateFrom,
  988.         HICoordinateSystem translateTo,
  989.         Rect* sourceRect,
  990.         Rect* translatedRect)
  991. {
  992.    SOM_ResolveD(this,HIControl,HIObject,TranslateRect)
  993.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  994. }
  995.  
  996. /* method: StateChanged */
  997. void   StateChanged(Environment *ev,
  998.         HIStateChangeCodeCreator selectorCreator,
  999.         HIStateChangeCode changedCode)
  1000. {
  1001.    SOM_ResolveD(this,HIControl,HIObject,StateChanged)
  1002.     (this,ev,selectorCreator,changedCode);
  1003. }
  1004.  
  1005. /* method: SetClipboardSupportFlags */
  1006. void   SetClipboardSupportFlags(Environment *ev,
  1007.         HIClipboardSupportFlags flags)
  1008. {
  1009.    SOM_ResolveD(this,HIControl,HIObject,SetClipboardSupportFlags)
  1010.     (this,ev,flags);
  1011. }
  1012.  
  1013. /* method: Verify */
  1014. OSStatus   Verify(Environment *ev)
  1015. {
  1016.    return SOM_ResolveD(this,HIControl,HIObject,Verify)
  1017.     (this,ev);
  1018. }
  1019.  
  1020. /* method: somInit */
  1021. void   somInit()
  1022. {
  1023.    SOM_ResolveD(this,HIControl,SOMObject,somInit)
  1024.     (this);
  1025. }
  1026.  
  1027. /* method: somUninit */
  1028. void   somUninit()
  1029. {
  1030.    SOM_ResolveD(this,HIControl,SOMObject,somUninit)
  1031.     (this);
  1032. }
  1033.  
  1034. /* method: somDuplicateReference */
  1035. SOMObject*   somDuplicateReference()
  1036. {
  1037.    return SOM_ResolveD(this,HIControl,SOMObject,somDuplicateReference)
  1038.     (this);
  1039. }
  1040.  
  1041. /* method: somCompareReference */
  1042. boolean   somCompareReference(SOMObject* anObject)
  1043. {
  1044.    return SOM_ResolveD(this,HIControl,SOMObject,somCompareReference)
  1045.     (this,anObject);
  1046. }
  1047.  
  1048. /* method: somRelease */
  1049. SOMObject*   somRelease()
  1050. {
  1051.    return SOM_ResolveD(this,HIControl,SOMObject,somRelease)
  1052.     (this);
  1053. }
  1054.  
  1055. /* method: somFree */
  1056. void   somFree()
  1057. {
  1058.    SOM_ResolveD(this,HIControl,SOMObject,somFree)
  1059.     (this);
  1060. }
  1061.  
  1062. /* method: somCanDelete */
  1063. boolean   somCanDelete()
  1064. {
  1065.    return SOM_ResolveD(this,HIControl,SOMObject,somCanDelete)
  1066.     (this);
  1067. }
  1068.  
  1069. /* method: somGetClass */
  1070. SOMClass*   somGetClass()
  1071. {
  1072.    return SOM_ResolveD(this,HIControl,SOMObject,somGetClass)
  1073.     (this);
  1074. }
  1075.  
  1076. /* method: somGetClassName */
  1077. corbastring   somGetClassName()
  1078. {
  1079.    return SOM_ResolveD(this,HIControl,SOMObject,somGetClassName)
  1080.     (this);
  1081. }
  1082.  
  1083. /* method: somGetSize */
  1084. long   somGetSize()
  1085. {
  1086.    return SOM_ResolveD(this,HIControl,SOMObject,somGetSize)
  1087.     (this);
  1088. }
  1089.  
  1090. /* method: somIsA */
  1091. boolean   somIsA(SOMClass* aClassObj)
  1092. {
  1093.    return SOM_ResolveD(this,HIControl,SOMObject,somIsA)
  1094.     (this,aClassObj);
  1095. }
  1096.  
  1097. /* method: somRespondsTo */
  1098. boolean   somRespondsTo(somId mId)
  1099. {
  1100.    return SOM_ResolveD(this,HIControl,SOMObject,somRespondsTo)
  1101.     (this,mId);
  1102. }
  1103.  
  1104. /* method: somIsInstanceOf */
  1105. boolean   somIsInstanceOf(SOMClass* aClassObj)
  1106. {
  1107.    return SOM_ResolveD(this,HIControl,SOMObject,somIsInstanceOf)
  1108.     (this,aClassObj);
  1109. }
  1110.  
  1111. /* va_list method: somDispatch */
  1112. /* the va_list invocation form */
  1113. boolean   HIControl_somDispatch(somToken* retValue,
  1114.         somId methodId,
  1115.         va_list ap)
  1116. {
  1117.    return SOM_ResolveD(this,HIControl,SOMObject,somDispatch)
  1118.     (this,retValue,methodId,ap);
  1119. }
  1120.  
  1121. /* the varargs invocation form */
  1122. boolean   somDispatch(somToken* retValue,
  1123.         somId methodId,
  1124.         ...)
  1125. {
  1126.    va_list ap;
  1127.    va_start(ap, methodId);
  1128.       boolean __somResult = 
  1129.       (boolean) SOM_ResolveD(this,HIControl,SOMObject,somDispatch)
  1130.     (this,retValue,methodId,ap);
  1131.    va_end(ap);
  1132.    return __somResult;
  1133. }
  1134.  
  1135. /* va_list method: somClassDispatch */
  1136. /* the va_list invocation form */
  1137. boolean   HIControl_somClassDispatch(SOMClass* clsObj,
  1138.         somToken* retValue,
  1139.         somId methodId,
  1140.         va_list ap)
  1141. {
  1142.    return SOM_ResolveD(this,HIControl,SOMObject,somClassDispatch)
  1143.     (this,clsObj,retValue,methodId,ap);
  1144. }
  1145.  
  1146. /* the varargs invocation form */
  1147. boolean   somClassDispatch(SOMClass* clsObj,
  1148.         somToken* retValue,
  1149.         somId methodId,
  1150.         ...)
  1151. {
  1152.    va_list ap;
  1153.    va_start(ap, methodId);
  1154.       boolean __somResult = 
  1155.       (boolean) SOM_ResolveD(this,HIControl,SOMObject,somClassDispatch)
  1156.     (this,clsObj,retValue,methodId,ap);
  1157.    va_end(ap);
  1158.    return __somResult;
  1159. }
  1160.  
  1161. /* method: somCastObj */
  1162. boolean   somCastObj(SOMClass* cls)
  1163. {
  1164.    return SOM_ResolveD(this,HIControl,SOMObject,somCastObj)
  1165.     (this,cls);
  1166. }
  1167.  
  1168. /* method: somResetObj */
  1169. boolean   somResetObj()
  1170. {
  1171.    return SOM_ResolveD(this,HIControl,SOMObject,somResetObj)
  1172.     (this);
  1173. }
  1174.  
  1175. /* method: somPrintSelf */
  1176. SOMObject*   somPrintSelf()
  1177. {
  1178.    return SOM_ResolveD(this,HIControl,SOMObject,somPrintSelf)
  1179.     (this);
  1180. }
  1181.  
  1182. /* method: somDumpSelf */
  1183. void   somDumpSelf(long level)
  1184. {
  1185.    SOM_ResolveD(this,HIControl,SOMObject,somDumpSelf)
  1186.     (this,level);
  1187. }
  1188.  
  1189. /* method: somDumpSelfInt */
  1190. void   somDumpSelfInt(long level)
  1191. {
  1192.    SOM_ResolveD(this,HIControl,SOMObject,somDumpSelfInt)
  1193.     (this,level);
  1194. }
  1195.  
  1196. };   /* HIControl */
  1197.  
  1198.  
  1199.  
  1200. #endif       /* SOM_HIControl_xh */
  1201.  
  1202. #ifndef SOM_HIPushButton_xh
  1203. #define SOM_HIPushButton_xh
  1204.  
  1205. class HIPushButton;
  1206.  
  1207. #define HIPushButton_MajorVersion 0
  1208. #define HIPushButton_MinorVersion 0
  1209.  
  1210. /* C++ SOM defs */
  1211. #include <somcls.xh>
  1212. #include <somcm.xh>
  1213.  
  1214. /* C++ parent defs */
  1215. #ifndef SOM_HIControl_xh
  1216. #include <HIControls.xh>
  1217. #endif
  1218.  
  1219. #ifndef HIPushButton_API
  1220. #define HIPushButton_API
  1221. /*
  1222.  * -- The Class API
  1223.  */
  1224.  
  1225. /*
  1226.  * Start of user-defined types:
  1227.  */
  1228.  
  1229. /*
  1230.  * End of user-defined types.
  1231.  */
  1232.  
  1233. #ifdef OLDIBMSOMAPISUPPORT
  1234. #define HIPushButtonCClassData HIPushButtonClassData
  1235. #define HIPushButtonNewClass(major,minor) somNewVersionedClassReference(HIPushButton,major,minor)
  1236. #endif
  1237.  
  1238. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  1239. #define HIPushButtonMetaClass SOMClass
  1240.  
  1241. #if PRAGMA_ALIGN_SUPPORTED
  1242. #  pragma options align=power
  1243. #endif
  1244.  
  1245. /* The API to the HIPushButton class object, and the methods it introduces. */
  1246. SOMEXTERN struct HIPushButtonClassDataStructure {
  1247. #ifdef OLDIBMSOMAPISUPPORT
  1248.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  1249. #else
  1250.     long zero;
  1251. #endif
  1252.     somStaticClassInfo *sci;
  1253.     somDToken        instanceDataToken;
  1254.     long reserved [3];
  1255.     somMToken InitPushButton;
  1256.     somMToken SetAdornment;
  1257.     somMToken GetAdornment;
  1258. } SOMDLINK HIPushButtonClassData;
  1259.  
  1260. #if PRAGMA_ALIGN_SUPPORTED
  1261. #  pragma options align=reset
  1262. #endif
  1263.  
  1264. #if !defined(HIPushButton_Class_Source) && !defined(SOM_Module_hicontrols_Source)
  1265. #if PRAGMA_IMPORT_SUPPORTED
  1266. #pragma import list HIPushButtonClassData
  1267. #endif
  1268. #endif
  1269.  
  1270.  
  1271. /*
  1272.  * -- Typedefs for HIPushButton Method Procedures
  1273.  */
  1274. SOMEXTERN {
  1275. typedef OSStatus   (* SOMLINK somTD_HIPushButton_InitPushButton)(HIPushButton *somSelf, Environment *ev,
  1276.         RefLabel* identifier,
  1277.         HIWindow* window,
  1278.         Rect* bounds);
  1279. typedef void   (* SOMLINK somTD_HIPushButton_SetAdornment)(HIPushButton *somSelf, Environment *ev,
  1280.         HIAdornment adornment);
  1281. typedef HIAdornment   (* SOMLINK somTD_HIPushButton_GetAdornment)(HIPushButton *somSelf, Environment *ev);
  1282.  
  1283. /*
  1284.  * -- Typedefs for Inherited Methods
  1285.  */
  1286. typedef OSStatus   (* SOMLINK somTD_HIPushButton_InitControl)(HIPushButton *somSelf, Environment *ev,
  1287.         RefLabel* identifier,
  1288.         HIWindow* window,
  1289.         Rect* bounds,
  1290.         SInt32 value,
  1291.         SInt32 minimumValue,
  1292.         SInt32 maximumValue);
  1293. typedef void   (* SOMLINK somTD_HIPushButton_SetValue)(HIPushButton *somSelf, Environment *ev,
  1294.         SInt32 newValue);
  1295. typedef SInt32   (* SOMLINK somTD_HIPushButton_GetValue)(HIPushButton *somSelf, Environment *ev);
  1296. typedef void   (* SOMLINK somTD_HIPushButton_SetMinimum)(HIPushButton *somSelf, Environment *ev,
  1297.         SInt32 newMinimum);
  1298. typedef SInt32   (* SOMLINK somTD_HIPushButton_GetMinimum)(HIPushButton *somSelf, Environment *ev);
  1299. typedef void   (* SOMLINK somTD_HIPushButton_SetMaximum)(HIPushButton *somSelf, Environment *ev,
  1300.         SInt32 newMaximum);
  1301. typedef SInt32   (* SOMLINK somTD_HIPushButton_GetMaximum)(HIPushButton *somSelf, Environment *ev);
  1302. typedef void   (* SOMLINK somTD_HIPushButton_SimulateSelection)(HIPushButton *somSelf, Environment *ev);
  1303. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIPushButton_GetEmbeddingParent)(HIPushButton *somSelf, Environment *ev);
  1304. typedef OSStatus   (* SOMLINK somTD_HIPushButton_InitPanel)(HIPushButton *somSelf, Environment *ev,
  1305.         RefLabel* identifier,
  1306.         HIWindow* window,
  1307.         Rect* bounds);
  1308. typedef OSStatus   (* SOMLINK somTD_HIPushButton_RegisterInterestInAppleEvent)(HIPushButton *somSelf, Environment *ev,
  1309.         AEHandlerTableRef table,
  1310.         AEEventClass eventClass,
  1311.         AEEventID eventID,
  1312.         HIEventRoutingType eventRouting);
  1313. typedef boolean   (* SOMLINK somTD_HIPushButton_HasValidContent)(HIPushButton *somSelf, Environment *ev);
  1314. typedef OSStatus   (* SOMLINK somTD_HIPushButton_GetDeepCollectionItemData)(HIPushButton *somSelf, Environment *ev,
  1315.         CollectionTag tag,
  1316.         SInt32 id,
  1317.         ByteCount sizeAllowed,
  1318.         ByteCount* sizeReturned,
  1319.         void* itemData);
  1320. typedef HIWindow*   (* SOMLINK somTD_HIPushButton_GetWindow)(HIPushButton *somSelf, Environment *ev);
  1321. typedef CGrafPtr   (* SOMLINK somTD_HIPushButton_GetPort)(HIPushButton *somSelf, Environment *ev);
  1322. typedef void   (* SOMLINK somTD_HIPushButton_GetRefLabel)(HIPushButton *somSelf, Environment *ev,
  1323.         RefLabel* identifier);
  1324. typedef Collection   (* SOMLINK somTD_HIPushButton_GetCollection)(HIPushButton *somSelf, Environment *ev);
  1325. typedef OSStatus   (* SOMLINK somTD_HIPushButton_Init)(HIPushButton *somSelf, Environment *ev,
  1326.         RefLabel* identifier,
  1327.         Rect* boundingRect);
  1328. typedef void   (* SOMLINK somTD_HIPushButton_Terminate)(HIPushButton *somSelf, Environment *ev);
  1329. typedef HIObject*   (* SOMLINK somTD_HIPushButton_Clone)(HIPushButton *somSelf, Environment *ev);
  1330. typedef void   (* SOMLINK somTD_HIPushButton_Release)(HIPushButton *somSelf, Environment *ev);
  1331. typedef ItemCount   (* SOMLINK somTD_HIPushButton_GetOwnerCount)(HIPushButton *somSelf, Environment *ev);
  1332. typedef OSStatus   (* SOMLINK somTD_HIPushButton_InitFromAERecord)(HIPushButton *somSelf, Environment *ev,
  1333.         AESubDesc* baseInitializerData,
  1334.         AESubDesc* initializerDataForClass,
  1335.         HIAERecordDataFormat dataFormat);
  1336. typedef OSStatus   (* SOMLINK somTD_HIPushButton_WriteToAERecord)(HIPushButton *somSelf, Environment *ev,
  1337.         AERecord* dataForSubclass,
  1338.         AERecord* objectData,
  1339.         HIAERecordDataFormat dataFormat);
  1340. typedef void   (* SOMLINK somTD_HIPushButton_CalculateOptimalSize)(HIPushButton *somSelf, Environment *ev,
  1341.         SInt16* optimalWidth,
  1342.         SInt16* optimalHeight);
  1343. typedef void   (* SOMLINK somTD_HIPushButton_GetBoundingRect)(HIPushButton *somSelf, Environment *ev,
  1344.         HICoordinateSystem coordinate,
  1345.         Rect* boundingRect);
  1346. typedef void   (* SOMLINK somTD_HIPushButton_SetBoundingRect)(HIPushButton *somSelf, Environment *ev,
  1347.         HICoordinateSystem coordinate,
  1348.         Rect* newBoundingRect);
  1349. typedef void   (* SOMLINK somTD_HIPushButton_SetPosition)(HIPushButton *somSelf, Environment *ev,
  1350.         HICoordinateSystem coordinate,
  1351.         Point* newPosition);
  1352. typedef void   (* SOMLINK somTD_HIPushButton_SetSize)(HIPushButton *somSelf, Environment *ev,
  1353.         SInt16 width,
  1354.         SInt16 height);
  1355. typedef void   (* SOMLINK somTD_HIPushButton_GetUpdateRect)(HIPushButton *somSelf, Environment *ev,
  1356.         HICoordinateSystem coordinate,
  1357.         Rect* updateRect);
  1358. typedef void   (* SOMLINK somTD_HIPushButton_Enable)(HIPushButton *somSelf, Environment *ev);
  1359. typedef void   (* SOMLINK somTD_HIPushButton_Disable)(HIPushButton *somSelf, Environment *ev);
  1360. typedef boolean   (* SOMLINK somTD_HIPushButton_IsEnabled)(HIPushButton *somSelf, Environment *ev);
  1361. typedef void   (* SOMLINK somTD_HIPushButton_Show)(HIPushButton *somSelf, Environment *ev);
  1362. typedef void   (* SOMLINK somTD_HIPushButton_Hide)(HIPushButton *somSelf, Environment *ev);
  1363. typedef boolean   (* SOMLINK somTD_HIPushButton_IsVisible)(HIPushButton *somSelf, Environment *ev);
  1364. typedef OSStatus   (* SOMLINK somTD_HIPushButton_HandleAppleEvent)(HIPushButton *somSelf, Environment *ev,
  1365.         AEEventClass eventClass,
  1366.         AEEventID eventID,
  1367.         AppleEvent* theEvent,
  1368.         AppleEvent* reply,
  1369.         AEHandlerTableRef handlerTableRef);
  1370. typedef OSStatus   (* SOMLINK somTD_HIPushButton_HandleActivate)(HIPushButton *somSelf, Environment *ev,
  1371.         AppleEvent* theEvent,
  1372.         AppleEvent* reply,
  1373.         AEHandlerTableRef handlerTableRef);
  1374. typedef OSStatus   (* SOMLINK somTD_HIPushButton_HandleDeactivate)(HIPushButton *somSelf, Environment *ev,
  1375.         AppleEvent* theEvent,
  1376.         AppleEvent* reply,
  1377.         AEHandlerTableRef handlerTableRef);
  1378. typedef OSStatus   (* SOMLINK somTD_HIPushButton_HandleNavigation)(HIPushButton *somSelf, Environment *ev,
  1379.         SInt8 key,
  1380.         SInt8 keyCode,
  1381.         EventModifiers modifiers,
  1382.         AppleEvent* theEvent,
  1383.         AppleEvent* reply,
  1384.         AEHandlerTableRef handlerTableRef);
  1385. typedef OSStatus   (* SOMLINK somTD_HIPushButton_HandleMouseDownInContent)(HIPushButton *somSelf, Environment *ev,
  1386.         Point* portLocalWhere,
  1387.         EventModifiers modifiers,
  1388.         AppleEvent* theEvent,
  1389.         AppleEvent* reply,
  1390.         AEHandlerTableRef handlerTableRef);
  1391. typedef OSStatus   (* SOMLINK somTD_HIPushButton_HandleMouseMovedInContent)(HIPushButton *somSelf, Environment *ev,
  1392.         Point* portLocalWhere,
  1393.         EventModifiers modifiers,
  1394.         AppleEvent* theEvent,
  1395.         AppleEvent* reply,
  1396.         AEHandlerTableRef handlerTableRef);
  1397. typedef OSStatus   (* SOMLINK somTD_HIPushButton_HandleMouseStoppedMovingInContent)(HIPushButton *somSelf, Environment *ev,
  1398.         Point* portLocalWhere,
  1399.         EventModifiers modifiers,
  1400.         AppleEvent* theEvent,
  1401.         AppleEvent* reply,
  1402.         AEHandlerTableRef handlerTableRef);
  1403. typedef OSStatus   (* SOMLINK somTD_HIPushButton_HandleMouseUpInContent)(HIPushButton *somSelf, Environment *ev,
  1404.         Point* portLocalWhere,
  1405.         EventModifiers modifiers,
  1406.         AppleEvent* theEvent,
  1407.         AppleEvent* reply,
  1408.         AEHandlerTableRef handlerTableRef);
  1409. typedef void   (* SOMLINK somTD_HIPushButton_TakeUserInputFocus)(HIPushButton *somSelf, Environment *ev);
  1410. typedef void   (* SOMLINK somTD_HIPushButton_ReleaseUserInputFocus)(HIPushButton *somSelf, Environment *ev);
  1411. typedef boolean   (* SOMLINK somTD_HIPushButton_HasUserInputFocus)(HIPushButton *somSelf, Environment *ev);
  1412. typedef boolean   (* SOMLINK somTD_HIPushButton_CanReleaseUserInputFocus)(HIPushButton *somSelf, Environment *ev);
  1413. typedef void   (* SOMLINK somTD_HIPushButton_SetUserInputFocusFlags)(HIPushButton *somSelf, Environment *ev,
  1414.         HIUserInputFocusFlags flags);
  1415. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIPushButton_GetUserInputFocusFlags)(HIPushButton *somSelf, Environment *ev);
  1416. typedef OSStatus   (* SOMLINK somTD_HIPushButton_SetTitle)(HIPushButton *somSelf, Environment *ev,
  1417.         ConstHIImageRef title,
  1418.         HIAdoptionFlags disposalAdoptionFlags);
  1419. typedef OSStatus   (* SOMLINK somTD_HIPushButton_GetTitle)(HIPushButton *somSelf, Environment *ev,
  1420.         HIImageRef* title);
  1421. typedef void   (* SOMLINK somTD_HIPushButton_Draw)(HIPushButton *somSelf, Environment *ev,
  1422.         CGrafPtr whichPort,
  1423.         RgnHandle drawRgn);
  1424. typedef void   (* SOMLINK somTD_HIPushButton_Erase)(HIPushButton *somSelf, Environment *ev,
  1425.         CGrafPtr whichPort,
  1426.         RgnHandle eraseRgn);
  1427. typedef void   (* SOMLINK somTD_HIPushButton_Invalidate)(HIPushButton *somSelf, Environment *ev);
  1428. typedef HIDrawingMode   (* SOMLINK somTD_HIPushButton_GetDrawingMode)(HIPushButton *somSelf, Environment *ev);
  1429. typedef void   (* SOMLINK somTD_HIPushButton_SetDrawingMode)(HIPushButton *somSelf, Environment *ev,
  1430.         HIDrawingMode drawingMode);
  1431. typedef void   (* SOMLINK somTD_HIPushButton_SetBackgroundPattern)(HIPushButton *somSelf, Environment *ev,
  1432.         PixPatHandle backgroundPattern);
  1433. typedef PixPatHandle   (* SOMLINK somTD_HIPushButton_GetBackgroundPattern)(HIPushButton *somSelf, Environment *ev);
  1434. typedef void   (* SOMLINK somTD_HIPushButton_Cut)(HIPushButton *somSelf, Environment *ev);
  1435. typedef void   (* SOMLINK somTD_HIPushButton_Copy)(HIPushButton *somSelf, Environment *ev);
  1436. typedef void   (* SOMLINK somTD_HIPushButton_Paste)(HIPushButton *somSelf, Environment *ev);
  1437. typedef void   (* SOMLINK somTD_HIPushButton_Clear)(HIPushButton *somSelf, Environment *ev);
  1438. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIPushButton_GetClipboardSupportFlags)(HIPushButton *somSelf, Environment *ev);
  1439. typedef OSStatus   (* SOMLINK somTD_HIPushButton_AddStateChangeCallback)(HIPushButton *somSelf, Environment *ev,
  1440.         HIStateChangeCallbackProcPtr changedStateCallback,
  1441.         HIStateChangeCallbackRef* newCallbackRef);
  1442. typedef OSStatus   (* SOMLINK somTD_HIPushButton_RemoveStateChangeCallback)(HIPushButton *somSelf, Environment *ev,
  1443.         HIStateChangeCallbackRef callbackRefToRemove);
  1444. typedef OSStatus   (* SOMLINK somTD_HIPushButton_GetHIObjectFromRefLabel)(Environment *ev,
  1445.         RefLabel* identifier,
  1446.         ItemCount requestedObjects,
  1447.         ItemCount* totalObjects,
  1448.         HIObject** theObjects);
  1449. typedef OSStatus   (* SOMLINK somTD_HIPushButton_GetNewHIObject)(Environment *ev,
  1450.         AESubDesc* objectInitializer,
  1451.         HIObject** newObject);
  1452. typedef OSStatus   (* SOMLINK somTD_HIPushButton_GetNewHIObjectFromResource)(Environment *ev,
  1453.         ResID objectInitializerResourceID,
  1454.         HIObject** newObject);
  1455. typedef void   (* SOMLINK somTD_HIPushButton_DrawContent)(HIPushButton *somSelf, Environment *ev,
  1456.         CGrafPtr whichPort,
  1457.         RgnHandle drawRgn);
  1458. typedef void   (* SOMLINK somTD_HIPushButton_EraseContent)(HIPushButton *somSelf, Environment *ev,
  1459.         CGrafPtr whichPort,
  1460.         RgnHandle regionToErase);
  1461. typedef void   (* SOMLINK somTD_HIPushButton_TranslatePoint)(HIPushButton *somSelf, Environment *ev,
  1462.         HICoordinateSystem translateFrom,
  1463.         HICoordinateSystem translateTo,
  1464.         Point* sourcePoint,
  1465.         Point* translatedPoint);
  1466. typedef void   (* SOMLINK somTD_HIPushButton_TranslateRect)(HIPushButton *somSelf, Environment *ev,
  1467.         HICoordinateSystem translateFrom,
  1468.         HICoordinateSystem translateTo,
  1469.         Rect* sourceRect,
  1470.         Rect* translatedRect);
  1471. typedef void   (* SOMLINK somTD_HIPushButton_StateChanged)(HIPushButton *somSelf, Environment *ev,
  1472.         HIStateChangeCodeCreator selectorCreator,
  1473.         HIStateChangeCode changedCode);
  1474. typedef void   (* SOMLINK somTD_HIPushButton_SetClipboardSupportFlags)(HIPushButton *somSelf, Environment *ev,
  1475.         HIClipboardSupportFlags flags);
  1476. typedef OSStatus   (* SOMLINK somTD_HIPushButton_Verify)(HIPushButton *somSelf, Environment *ev);
  1477. typedef void   (* SOMLINK somTD_HIPushButton_somInit)(HIPushButton *somSelf);
  1478. typedef void   (* SOMLINK somTD_HIPushButton_somUninit)(HIPushButton *somSelf);
  1479. typedef SOMObject*   (* SOMLINK somTD_HIPushButton_somDuplicateReference)(HIPushButton *somSelf);
  1480. typedef boolean   (* SOMLINK somTD_HIPushButton_somCompareReference)(HIPushButton *somSelf,
  1481.         SOMObject* anObject);
  1482. typedef SOMObject*   (* SOMLINK somTD_HIPushButton_somRelease)(HIPushButton *somSelf);
  1483. typedef void   (* SOMLINK somTD_HIPushButton_somFree)(HIPushButton *somSelf);
  1484. typedef boolean   (* SOMLINK somTD_HIPushButton_somCanDelete)(HIPushButton *somSelf);
  1485. typedef SOMClass*   (* SOMLINK somTD_HIPushButton_somGetClass)(HIPushButton *somSelf);
  1486. typedef corbastring   (* SOMLINK somTD_HIPushButton_somGetClassName)(HIPushButton *somSelf);
  1487. typedef long   (* SOMLINK somTD_HIPushButton_somGetSize)(HIPushButton *somSelf);
  1488. typedef boolean   (* SOMLINK somTD_HIPushButton_somIsA)(HIPushButton *somSelf,
  1489.         SOMClass* aClassObj);
  1490. typedef boolean   (* SOMLINK somTD_HIPushButton_somRespondsTo)(HIPushButton *somSelf,
  1491.         somId mId);
  1492. typedef boolean   (* SOMLINK somTD_HIPushButton_somIsInstanceOf)(HIPushButton *somSelf,
  1493.         SOMClass* aClassObj);
  1494. typedef boolean   (* SOMLINK somTD_HIPushButton_somDispatch)(HIPushButton *somSelf,
  1495.         somToken* retValue,
  1496.         somId methodId,
  1497.         va_list ap);
  1498. typedef boolean   (* SOMLINK somTD_HIPushButton_somClassDispatch)(HIPushButton *somSelf,
  1499.         SOMClass* clsObj,
  1500.         somToken* retValue,
  1501.         somId methodId,
  1502.         va_list ap);
  1503. typedef boolean   (* SOMLINK somTD_HIPushButton_somCastObj)(HIPushButton *somSelf,
  1504.         SOMClass* cls);
  1505. typedef boolean   (* SOMLINK somTD_HIPushButton_somResetObj)(HIPushButton *somSelf);
  1506. typedef SOMObject*   (* SOMLINK somTD_HIPushButton_somPrintSelf)(HIPushButton *somSelf);
  1507. typedef void   (* SOMLINK somTD_HIPushButton_somDumpSelf)(HIPushButton *somSelf,
  1508.         long level);
  1509. typedef void   (* SOMLINK somTD_HIPushButton_somDumpSelfInt)(HIPushButton *somSelf,
  1510.         long level);
  1511. }
  1512.  
  1513. #endif /* HIPushButton_API */
  1514.  
  1515.  
  1516. /*
  1517.  * -- This emitter treats Method Tokens as Thunks by default.
  1518.  * -- Use the sc modifier "nothunks" to change this default
  1519.  */
  1520. #undef somresolve_
  1521. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  1522.  
  1523. /*
  1524.  * -- The C++ Wrapper Class for HIPushButton
  1525.  */
  1526. class HIPushButton : public HIControl
  1527. {
  1528. public:
  1529.  
  1530. // HIPushButton::new registers use of the class object, and then uses somNew
  1531. // to allocate memory and load the object method table pointer. 
  1532. void *operator new(size_t size)
  1533. {
  1534.     SOM_IgnoreWarning(size);
  1535.     // Allocate memory using the default allocator for HIPushButton, and
  1536.     // clear mem & set method table pointer, call basic initialization
  1537.     return (void*) somNewObject(HIPushButton);
  1538. }
  1539.  
  1540. // HIPushButton::delete uses the default deallocator for the object's class.
  1541. void operator delete(void * obj)
  1542. {
  1543.     if (obj) {
  1544.         SOM_Resolve(obj,SOMObject,somFree)
  1545.            ( (SOMObject*) obj );
  1546.     }
  1547. }
  1548.  
  1549. /* method: InitPushButton */
  1550. OSStatus   InitPushButton(Environment *ev,
  1551.         RefLabel* identifier,
  1552.         HIWindow* window,
  1553.         Rect* bounds)
  1554. {
  1555.    return SOM_ResolveD(this,HIPushButton,HIPushButton,InitPushButton)
  1556.     (this,ev,identifier,window,bounds);
  1557. }
  1558.  
  1559. /* method: SetAdornment */
  1560. void   SetAdornment(Environment *ev,
  1561.         HIAdornment adornment)
  1562. {
  1563.    SOM_ResolveD(this,HIPushButton,HIPushButton,SetAdornment)
  1564.     (this,ev,adornment);
  1565. }
  1566.  
  1567. /* method: GetAdornment */
  1568. HIAdornment   GetAdornment(Environment *ev)
  1569. {
  1570.    return SOM_ResolveD(this,HIPushButton,HIPushButton,GetAdornment)
  1571.     (this,ev);
  1572. }
  1573.  
  1574.  
  1575. /*
  1576.  * -- Inherited methods
  1577.  */
  1578. /* method: InitControl */
  1579. OSStatus   InitControl(Environment *ev,
  1580.         RefLabel* identifier,
  1581.         HIWindow* window,
  1582.         Rect* bounds,
  1583.         SInt32 value,
  1584.         SInt32 minimumValue,
  1585.         SInt32 maximumValue)
  1586. {
  1587.    return SOM_ResolveD(this,HIPushButton,HIControl,InitControl)
  1588.     (this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
  1589. }
  1590.  
  1591. /* method: SetValue */
  1592. void   SetValue(Environment *ev,
  1593.         SInt32 newValue)
  1594. {
  1595.    SOM_ResolveD(this,HIPushButton,HIControl,SetValue)
  1596.     (this,ev,newValue);
  1597. }
  1598.  
  1599. /* method: GetValue */
  1600. SInt32   GetValue(Environment *ev)
  1601. {
  1602.    return SOM_ResolveD(this,HIPushButton,HIControl,GetValue)
  1603.     (this,ev);
  1604. }
  1605.  
  1606. /* method: SetMinimum */
  1607. void   SetMinimum(Environment *ev,
  1608.         SInt32 newMinimum)
  1609. {
  1610.    SOM_ResolveD(this,HIPushButton,HIControl,SetMinimum)
  1611.     (this,ev,newMinimum);
  1612. }
  1613.  
  1614. /* method: GetMinimum */
  1615. SInt32   GetMinimum(Environment *ev)
  1616. {
  1617.    return SOM_ResolveD(this,HIPushButton,HIControl,GetMinimum)
  1618.     (this,ev);
  1619. }
  1620.  
  1621. /* method: SetMaximum */
  1622. void   SetMaximum(Environment *ev,
  1623.         SInt32 newMaximum)
  1624. {
  1625.    SOM_ResolveD(this,HIPushButton,HIControl,SetMaximum)
  1626.     (this,ev,newMaximum);
  1627. }
  1628.  
  1629. /* method: GetMaximum */
  1630. SInt32   GetMaximum(Environment *ev)
  1631. {
  1632.    return SOM_ResolveD(this,HIPushButton,HIControl,GetMaximum)
  1633.     (this,ev);
  1634. }
  1635.  
  1636. /* method: SimulateSelection */
  1637. void   SimulateSelection(Environment *ev)
  1638. {
  1639.    SOM_ResolveD(this,HIPushButton,HIControl,SimulateSelection)
  1640.     (this,ev);
  1641. }
  1642.  
  1643. /* method: GetEmbeddingParent */
  1644. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  1645. {
  1646.    return SOM_ResolveD(this,HIPushButton,HIPanel,GetEmbeddingParent)
  1647.     (this,ev);
  1648. }
  1649.  
  1650. /* method: InitPanel */
  1651. OSStatus   InitPanel(Environment *ev,
  1652.         RefLabel* identifier,
  1653.         HIWindow* window,
  1654.         Rect* bounds)
  1655. {
  1656.    return SOM_ResolveD(this,HIPushButton,HIPanel,InitPanel)
  1657.     (this,ev,identifier,window,bounds);
  1658. }
  1659.  
  1660. /* method: RegisterInterestInAppleEvent */
  1661. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  1662.         AEHandlerTableRef table,
  1663.         AEEventClass eventClass,
  1664.         AEEventID eventID,
  1665.         HIEventRoutingType eventRouting)
  1666. {
  1667.    return SOM_ResolveD(this,HIPushButton,HIPanel,RegisterInterestInAppleEvent)
  1668.     (this,ev,table,eventClass,eventID,eventRouting);
  1669. }
  1670.  
  1671. /* method: HasValidContent */
  1672. boolean   HasValidContent(Environment *ev)
  1673. {
  1674.    return SOM_ResolveD(this,HIPushButton,HIPanel,HasValidContent)
  1675.     (this,ev);
  1676. }
  1677.  
  1678. /* method: GetDeepCollectionItemData */
  1679. OSStatus   GetDeepCollectionItemData(Environment *ev,
  1680.         CollectionTag tag,
  1681.         SInt32 id,
  1682.         ByteCount sizeAllowed,
  1683.         ByteCount* sizeReturned,
  1684.         void* itemData)
  1685. {
  1686.    return SOM_ResolveD(this,HIPushButton,HIPanel,GetDeepCollectionItemData)
  1687.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  1688. }
  1689.  
  1690. /* method: GetWindow */
  1691. HIWindow*   GetWindow(Environment *ev)
  1692. {
  1693.    return SOM_ResolveD(this,HIPushButton,HIObject,GetWindow)
  1694.     (this,ev);
  1695. }
  1696.  
  1697. /* method: GetPort */
  1698. CGrafPtr   GetPort(Environment *ev)
  1699. {
  1700.    return SOM_ResolveD(this,HIPushButton,HIObject,GetPort)
  1701.     (this,ev);
  1702. }
  1703.  
  1704. /* method: GetRefLabel */
  1705. void   GetRefLabel(Environment *ev,
  1706.         RefLabel* identifier)
  1707. {
  1708.    SOM_ResolveD(this,HIPushButton,HIObject,GetRefLabel)
  1709.     (this,ev,identifier);
  1710. }
  1711.  
  1712. /* method: GetCollection */
  1713. Collection   GetCollection(Environment *ev)
  1714. {
  1715.    return SOM_ResolveD(this,HIPushButton,HIObject,GetCollection)
  1716.     (this,ev);
  1717. }
  1718.  
  1719. /* method: Init */
  1720. OSStatus   Init(Environment *ev,
  1721.         RefLabel* identifier,
  1722.         Rect* boundingRect)
  1723. {
  1724.    return SOM_ResolveD(this,HIPushButton,HIObject,Init)
  1725.     (this,ev,identifier,boundingRect);
  1726. }
  1727.  
  1728. /* method: Terminate */
  1729. void   Terminate(Environment *ev)
  1730. {
  1731.    SOM_ResolveD(this,HIPushButton,HIObject,Terminate)
  1732.     (this,ev);
  1733. }
  1734.  
  1735. /* method: Clone */
  1736. HIObject*   Clone(Environment *ev)
  1737. {
  1738.    return SOM_ResolveD(this,HIPushButton,HIObject,Clone)
  1739.     (this,ev);
  1740. }
  1741.  
  1742. /* method: Release */
  1743. void   Release(Environment *ev)
  1744. {
  1745.    SOM_ResolveD(this,HIPushButton,HIObject,Release)
  1746.     (this,ev);
  1747. }
  1748.  
  1749. /* method: GetOwnerCount */
  1750. ItemCount   GetOwnerCount(Environment *ev)
  1751. {
  1752.    return SOM_ResolveD(this,HIPushButton,HIObject,GetOwnerCount)
  1753.     (this,ev);
  1754. }
  1755.  
  1756. /* method: InitFromAERecord */
  1757. OSStatus   InitFromAERecord(Environment *ev,
  1758.         AESubDesc* baseInitializerData,
  1759.         AESubDesc* initializerDataForClass,
  1760.         HIAERecordDataFormat dataFormat)
  1761. {
  1762.    return SOM_ResolveD(this,HIPushButton,HIObject,InitFromAERecord)
  1763.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  1764. }
  1765.  
  1766. /* method: WriteToAERecord */
  1767. OSStatus   WriteToAERecord(Environment *ev,
  1768.         AERecord* dataForSubclass,
  1769.         AERecord* objectData,
  1770.         HIAERecordDataFormat dataFormat)
  1771. {
  1772.    return SOM_ResolveD(this,HIPushButton,HIObject,WriteToAERecord)
  1773.     (this,ev,dataForSubclass,objectData,dataFormat);
  1774. }
  1775.  
  1776. /* method: CalculateOptimalSize */
  1777. void   CalculateOptimalSize(Environment *ev,
  1778.         SInt16* optimalWidth,
  1779.         SInt16* optimalHeight)
  1780. {
  1781.    SOM_ResolveD(this,HIPushButton,HIObject,CalculateOptimalSize)
  1782.     (this,ev,optimalWidth,optimalHeight);
  1783. }
  1784.  
  1785. /* method: GetBoundingRect */
  1786. void   GetBoundingRect(Environment *ev,
  1787.         HICoordinateSystem coordinate,
  1788.         Rect* boundingRect)
  1789. {
  1790.    SOM_ResolveD(this,HIPushButton,HIObject,GetBoundingRect)
  1791.     (this,ev,coordinate,boundingRect);
  1792. }
  1793.  
  1794. /* method: SetBoundingRect */
  1795. void   SetBoundingRect(Environment *ev,
  1796.         HICoordinateSystem coordinate,
  1797.         Rect* newBoundingRect)
  1798. {
  1799.    SOM_ResolveD(this,HIPushButton,HIObject,SetBoundingRect)
  1800.     (this,ev,coordinate,newBoundingRect);
  1801. }
  1802.  
  1803. /* method: SetPosition */
  1804. void   SetPosition(Environment *ev,
  1805.         HICoordinateSystem coordinate,
  1806.         Point* newPosition)
  1807. {
  1808.    SOM_ResolveD(this,HIPushButton,HIObject,SetPosition)
  1809.     (this,ev,coordinate,newPosition);
  1810. }
  1811.  
  1812. /* method: SetSize */
  1813. void   SetSize(Environment *ev,
  1814.         SInt16 width,
  1815.         SInt16 height)
  1816. {
  1817.    SOM_ResolveD(this,HIPushButton,HIObject,SetSize)
  1818.     (this,ev,width,height);
  1819. }
  1820.  
  1821. /* method: GetUpdateRect */
  1822. void   GetUpdateRect(Environment *ev,
  1823.         HICoordinateSystem coordinate,
  1824.         Rect* updateRect)
  1825. {
  1826.    SOM_ResolveD(this,HIPushButton,HIObject,GetUpdateRect)
  1827.     (this,ev,coordinate,updateRect);
  1828. }
  1829.  
  1830. /* method: Enable */
  1831. void   Enable(Environment *ev)
  1832. {
  1833.    SOM_ResolveD(this,HIPushButton,HIObject,Enable)
  1834.     (this,ev);
  1835. }
  1836.  
  1837. /* method: Disable */
  1838. void   Disable(Environment *ev)
  1839. {
  1840.    SOM_ResolveD(this,HIPushButton,HIObject,Disable)
  1841.     (this,ev);
  1842. }
  1843.  
  1844. /* method: IsEnabled */
  1845. boolean   IsEnabled(Environment *ev)
  1846. {
  1847.    return SOM_ResolveD(this,HIPushButton,HIObject,IsEnabled)
  1848.     (this,ev);
  1849. }
  1850.  
  1851. /* method: Show */
  1852. void   Show(Environment *ev)
  1853. {
  1854.    SOM_ResolveD(this,HIPushButton,HIObject,Show)
  1855.     (this,ev);
  1856. }
  1857.  
  1858. /* method: Hide */
  1859. void   Hide(Environment *ev)
  1860. {
  1861.    SOM_ResolveD(this,HIPushButton,HIObject,Hide)
  1862.     (this,ev);
  1863. }
  1864.  
  1865. /* method: IsVisible */
  1866. boolean   IsVisible(Environment *ev)
  1867. {
  1868.    return SOM_ResolveD(this,HIPushButton,HIObject,IsVisible)
  1869.     (this,ev);
  1870. }
  1871.  
  1872. /* method: HandleAppleEvent */
  1873. OSStatus   HandleAppleEvent(Environment *ev,
  1874.         AEEventClass eventClass,
  1875.         AEEventID eventID,
  1876.         AppleEvent* theEvent,
  1877.         AppleEvent* reply,
  1878.         AEHandlerTableRef handlerTableRef)
  1879. {
  1880.    return SOM_ResolveD(this,HIPushButton,HIObject,HandleAppleEvent)
  1881.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  1882. }
  1883.  
  1884. /* method: HandleActivate */
  1885. OSStatus   HandleActivate(Environment *ev,
  1886.         AppleEvent* theEvent,
  1887.         AppleEvent* reply,
  1888.         AEHandlerTableRef handlerTableRef)
  1889. {
  1890.    return SOM_ResolveD(this,HIPushButton,HIObject,HandleActivate)
  1891.     (this,ev,theEvent,reply,handlerTableRef);
  1892. }
  1893.  
  1894. /* method: HandleDeactivate */
  1895. OSStatus   HandleDeactivate(Environment *ev,
  1896.         AppleEvent* theEvent,
  1897.         AppleEvent* reply,
  1898.         AEHandlerTableRef handlerTableRef)
  1899. {
  1900.    return SOM_ResolveD(this,HIPushButton,HIObject,HandleDeactivate)
  1901.     (this,ev,theEvent,reply,handlerTableRef);
  1902. }
  1903.  
  1904. /* method: HandleNavigation */
  1905. OSStatus   HandleNavigation(Environment *ev,
  1906.         SInt8 key,
  1907.         SInt8 keyCode,
  1908.         EventModifiers modifiers,
  1909.         AppleEvent* theEvent,
  1910.         AppleEvent* reply,
  1911.         AEHandlerTableRef handlerTableRef)
  1912. {
  1913.    return SOM_ResolveD(this,HIPushButton,HIObject,HandleNavigation)
  1914.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  1915. }
  1916.  
  1917. /* method: HandleMouseDownInContent */
  1918. OSStatus   HandleMouseDownInContent(Environment *ev,
  1919.         Point* portLocalWhere,
  1920.         EventModifiers modifiers,
  1921.         AppleEvent* theEvent,
  1922.         AppleEvent* reply,
  1923.         AEHandlerTableRef handlerTableRef)
  1924. {
  1925.    return SOM_ResolveD(this,HIPushButton,HIObject,HandleMouseDownInContent)
  1926.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  1927. }
  1928.  
  1929. /* method: HandleMouseMovedInContent */
  1930. OSStatus   HandleMouseMovedInContent(Environment *ev,
  1931.         Point* portLocalWhere,
  1932.         EventModifiers modifiers,
  1933.         AppleEvent* theEvent,
  1934.         AppleEvent* reply,
  1935.         AEHandlerTableRef handlerTableRef)
  1936. {
  1937.    return SOM_ResolveD(this,HIPushButton,HIObject,HandleMouseMovedInContent)
  1938.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  1939. }
  1940.  
  1941. /* method: HandleMouseStoppedMovingInContent */
  1942. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  1943.         Point* portLocalWhere,
  1944.         EventModifiers modifiers,
  1945.         AppleEvent* theEvent,
  1946.         AppleEvent* reply,
  1947.         AEHandlerTableRef handlerTableRef)
  1948. {
  1949.    return SOM_ResolveD(this,HIPushButton,HIObject,HandleMouseStoppedMovingInContent)
  1950.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  1951. }
  1952.  
  1953. /* method: HandleMouseUpInContent */
  1954. OSStatus   HandleMouseUpInContent(Environment *ev,
  1955.         Point* portLocalWhere,
  1956.         EventModifiers modifiers,
  1957.         AppleEvent* theEvent,
  1958.         AppleEvent* reply,
  1959.         AEHandlerTableRef handlerTableRef)
  1960. {
  1961.    return SOM_ResolveD(this,HIPushButton,HIObject,HandleMouseUpInContent)
  1962.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  1963. }
  1964.  
  1965. /* method: TakeUserInputFocus */
  1966. void   TakeUserInputFocus(Environment *ev)
  1967. {
  1968.    SOM_ResolveD(this,HIPushButton,HIObject,TakeUserInputFocus)
  1969.     (this,ev);
  1970. }
  1971.  
  1972. /* method: ReleaseUserInputFocus */
  1973. void   ReleaseUserInputFocus(Environment *ev)
  1974. {
  1975.    SOM_ResolveD(this,HIPushButton,HIObject,ReleaseUserInputFocus)
  1976.     (this,ev);
  1977. }
  1978.  
  1979. /* method: HasUserInputFocus */
  1980. boolean   HasUserInputFocus(Environment *ev)
  1981. {
  1982.    return SOM_ResolveD(this,HIPushButton,HIObject,HasUserInputFocus)
  1983.     (this,ev);
  1984. }
  1985.  
  1986. /* method: CanReleaseUserInputFocus */
  1987. boolean   CanReleaseUserInputFocus(Environment *ev)
  1988. {
  1989.    return SOM_ResolveD(this,HIPushButton,HIObject,CanReleaseUserInputFocus)
  1990.     (this,ev);
  1991. }
  1992.  
  1993. /* method: SetUserInputFocusFlags */
  1994. void   SetUserInputFocusFlags(Environment *ev,
  1995.         HIUserInputFocusFlags flags)
  1996. {
  1997.    SOM_ResolveD(this,HIPushButton,HIObject,SetUserInputFocusFlags)
  1998.     (this,ev,flags);
  1999. }
  2000.  
  2001. /* method: GetUserInputFocusFlags */
  2002. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  2003. {
  2004.    return SOM_ResolveD(this,HIPushButton,HIObject,GetUserInputFocusFlags)
  2005.     (this,ev);
  2006. }
  2007.  
  2008. /* method: SetTitle */
  2009. OSStatus   SetTitle(Environment *ev,
  2010.         ConstHIImageRef title,
  2011.         HIAdoptionFlags disposalAdoptionFlags)
  2012. {
  2013.    return SOM_ResolveD(this,HIPushButton,HIObject,SetTitle)
  2014.     (this,ev,title,disposalAdoptionFlags);
  2015. }
  2016.  
  2017. /* method: GetTitle */
  2018. OSStatus   GetTitle(Environment *ev,
  2019.         HIImageRef* title)
  2020. {
  2021.    return SOM_ResolveD(this,HIPushButton,HIObject,GetTitle)
  2022.     (this,ev,title);
  2023. }
  2024.  
  2025. /* method: Draw */
  2026. void   Draw(Environment *ev,
  2027.         CGrafPtr whichPort,
  2028.         RgnHandle drawRgn)
  2029. {
  2030.    SOM_ResolveD(this,HIPushButton,HIObject,Draw)
  2031.     (this,ev,whichPort,drawRgn);
  2032. }
  2033.  
  2034. /* method: Erase */
  2035. void   Erase(Environment *ev,
  2036.         CGrafPtr whichPort,
  2037.         RgnHandle eraseRgn)
  2038. {
  2039.    SOM_ResolveD(this,HIPushButton,HIObject,Erase)
  2040.     (this,ev,whichPort,eraseRgn);
  2041. }
  2042.  
  2043. /* method: Invalidate */
  2044. void   Invalidate(Environment *ev)
  2045. {
  2046.    SOM_ResolveD(this,HIPushButton,HIObject,Invalidate)
  2047.     (this,ev);
  2048. }
  2049.  
  2050. /* method: GetDrawingMode */
  2051. HIDrawingMode   GetDrawingMode(Environment *ev)
  2052. {
  2053.    return SOM_ResolveD(this,HIPushButton,HIObject,GetDrawingMode)
  2054.     (this,ev);
  2055. }
  2056.  
  2057. /* method: SetDrawingMode */
  2058. void   SetDrawingMode(Environment *ev,
  2059.         HIDrawingMode drawingMode)
  2060. {
  2061.    SOM_ResolveD(this,HIPushButton,HIObject,SetDrawingMode)
  2062.     (this,ev,drawingMode);
  2063. }
  2064.  
  2065. /* method: SetBackgroundPattern */
  2066. void   SetBackgroundPattern(Environment *ev,
  2067.         PixPatHandle backgroundPattern)
  2068. {
  2069.    SOM_ResolveD(this,HIPushButton,HIObject,SetBackgroundPattern)
  2070.     (this,ev,backgroundPattern);
  2071. }
  2072.  
  2073. /* method: GetBackgroundPattern */
  2074. PixPatHandle   GetBackgroundPattern(Environment *ev)
  2075. {
  2076.    return SOM_ResolveD(this,HIPushButton,HIObject,GetBackgroundPattern)
  2077.     (this,ev);
  2078. }
  2079.  
  2080. /* method: Cut */
  2081. void   Cut(Environment *ev)
  2082. {
  2083.    SOM_ResolveD(this,HIPushButton,HIObject,Cut)
  2084.     (this,ev);
  2085. }
  2086.  
  2087. /* method: Copy */
  2088. void   Copy(Environment *ev)
  2089. {
  2090.    SOM_ResolveD(this,HIPushButton,HIObject,Copy)
  2091.     (this,ev);
  2092. }
  2093.  
  2094. /* method: Paste */
  2095. void   Paste(Environment *ev)
  2096. {
  2097.    SOM_ResolveD(this,HIPushButton,HIObject,Paste)
  2098.     (this,ev);
  2099. }
  2100.  
  2101. /* method: Clear */
  2102. void   Clear(Environment *ev)
  2103. {
  2104.    SOM_ResolveD(this,HIPushButton,HIObject,Clear)
  2105.     (this,ev);
  2106. }
  2107.  
  2108. /* method: GetClipboardSupportFlags */
  2109. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  2110. {
  2111.    return SOM_ResolveD(this,HIPushButton,HIObject,GetClipboardSupportFlags)
  2112.     (this,ev);
  2113. }
  2114.  
  2115. /* method: AddStateChangeCallback */
  2116. OSStatus   AddStateChangeCallback(Environment *ev,
  2117.         HIStateChangeCallbackProcPtr changedStateCallback,
  2118.         HIStateChangeCallbackRef* newCallbackRef)
  2119. {
  2120.    return SOM_ResolveD(this,HIPushButton,HIObject,AddStateChangeCallback)
  2121.     (this,ev,changedStateCallback,newCallbackRef);
  2122. }
  2123.  
  2124. /* method: RemoveStateChangeCallback */
  2125. OSStatus   RemoveStateChangeCallback(Environment *ev,
  2126.         HIStateChangeCallbackRef callbackRefToRemove)
  2127. {
  2128.    return SOM_ResolveD(this,HIPushButton,HIObject,RemoveStateChangeCallback)
  2129.     (this,ev,callbackRefToRemove);
  2130. }
  2131.  
  2132. /* noself procedure: GetHIObjectFromRefLabel */
  2133. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  2134.         RefLabel* identifier,
  2135.         ItemCount requestedObjects,
  2136.         ItemCount* totalObjects,
  2137.         HIObject** theObjects)
  2138. {
  2139. return ((somTD_HIPushButton_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  2140.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  2141. }
  2142.  
  2143. /* noself procedure: GetNewHIObject */
  2144. static OSStatus   GetNewHIObject(Environment *ev,
  2145.         AESubDesc* objectInitializer,
  2146.         HIObject** newObject)
  2147. {
  2148. return ((somTD_HIPushButton_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  2149.     (ev,objectInitializer,newObject);
  2150. }
  2151.  
  2152. /* noself procedure: GetNewHIObjectFromResource */
  2153. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  2154.         ResID objectInitializerResourceID,
  2155.         HIObject** newObject)
  2156. {
  2157. return ((somTD_HIPushButton_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  2158.     (ev,objectInitializerResourceID,newObject);
  2159. }
  2160.  
  2161. /* method: DrawContent */
  2162. void   DrawContent(Environment *ev,
  2163.         CGrafPtr whichPort,
  2164.         RgnHandle drawRgn)
  2165. {
  2166.    SOM_ResolveD(this,HIPushButton,HIObject,DrawContent)
  2167.     (this,ev,whichPort,drawRgn);
  2168. }
  2169.  
  2170. /* method: EraseContent */
  2171. void   EraseContent(Environment *ev,
  2172.         CGrafPtr whichPort,
  2173.         RgnHandle regionToErase)
  2174. {
  2175.    SOM_ResolveD(this,HIPushButton,HIObject,EraseContent)
  2176.     (this,ev,whichPort,regionToErase);
  2177. }
  2178.  
  2179. /* method: TranslatePoint */
  2180. void   TranslatePoint(Environment *ev,
  2181.         HICoordinateSystem translateFrom,
  2182.         HICoordinateSystem translateTo,
  2183.         Point* sourcePoint,
  2184.         Point* translatedPoint)
  2185. {
  2186.    SOM_ResolveD(this,HIPushButton,HIObject,TranslatePoint)
  2187.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  2188. }
  2189.  
  2190. /* method: TranslateRect */
  2191. void   TranslateRect(Environment *ev,
  2192.         HICoordinateSystem translateFrom,
  2193.         HICoordinateSystem translateTo,
  2194.         Rect* sourceRect,
  2195.         Rect* translatedRect)
  2196. {
  2197.    SOM_ResolveD(this,HIPushButton,HIObject,TranslateRect)
  2198.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  2199. }
  2200.  
  2201. /* method: StateChanged */
  2202. void   StateChanged(Environment *ev,
  2203.         HIStateChangeCodeCreator selectorCreator,
  2204.         HIStateChangeCode changedCode)
  2205. {
  2206.    SOM_ResolveD(this,HIPushButton,HIObject,StateChanged)
  2207.     (this,ev,selectorCreator,changedCode);
  2208. }
  2209.  
  2210. /* method: SetClipboardSupportFlags */
  2211. void   SetClipboardSupportFlags(Environment *ev,
  2212.         HIClipboardSupportFlags flags)
  2213. {
  2214.    SOM_ResolveD(this,HIPushButton,HIObject,SetClipboardSupportFlags)
  2215.     (this,ev,flags);
  2216. }
  2217.  
  2218. /* method: Verify */
  2219. OSStatus   Verify(Environment *ev)
  2220. {
  2221.    return SOM_ResolveD(this,HIPushButton,HIObject,Verify)
  2222.     (this,ev);
  2223. }
  2224.  
  2225. /* method: somInit */
  2226. void   somInit()
  2227. {
  2228.    SOM_ResolveD(this,HIPushButton,SOMObject,somInit)
  2229.     (this);
  2230. }
  2231.  
  2232. /* method: somUninit */
  2233. void   somUninit()
  2234. {
  2235.    SOM_ResolveD(this,HIPushButton,SOMObject,somUninit)
  2236.     (this);
  2237. }
  2238.  
  2239. /* method: somDuplicateReference */
  2240. SOMObject*   somDuplicateReference()
  2241. {
  2242.    return SOM_ResolveD(this,HIPushButton,SOMObject,somDuplicateReference)
  2243.     (this);
  2244. }
  2245.  
  2246. /* method: somCompareReference */
  2247. boolean   somCompareReference(SOMObject* anObject)
  2248. {
  2249.    return SOM_ResolveD(this,HIPushButton,SOMObject,somCompareReference)
  2250.     (this,anObject);
  2251. }
  2252.  
  2253. /* method: somRelease */
  2254. SOMObject*   somRelease()
  2255. {
  2256.    return SOM_ResolveD(this,HIPushButton,SOMObject,somRelease)
  2257.     (this);
  2258. }
  2259.  
  2260. /* method: somFree */
  2261. void   somFree()
  2262. {
  2263.    SOM_ResolveD(this,HIPushButton,SOMObject,somFree)
  2264.     (this);
  2265. }
  2266.  
  2267. /* method: somCanDelete */
  2268. boolean   somCanDelete()
  2269. {
  2270.    return SOM_ResolveD(this,HIPushButton,SOMObject,somCanDelete)
  2271.     (this);
  2272. }
  2273.  
  2274. /* method: somGetClass */
  2275. SOMClass*   somGetClass()
  2276. {
  2277.    return SOM_ResolveD(this,HIPushButton,SOMObject,somGetClass)
  2278.     (this);
  2279. }
  2280.  
  2281. /* method: somGetClassName */
  2282. corbastring   somGetClassName()
  2283. {
  2284.    return SOM_ResolveD(this,HIPushButton,SOMObject,somGetClassName)
  2285.     (this);
  2286. }
  2287.  
  2288. /* method: somGetSize */
  2289. long   somGetSize()
  2290. {
  2291.    return SOM_ResolveD(this,HIPushButton,SOMObject,somGetSize)
  2292.     (this);
  2293. }
  2294.  
  2295. /* method: somIsA */
  2296. boolean   somIsA(SOMClass* aClassObj)
  2297. {
  2298.    return SOM_ResolveD(this,HIPushButton,SOMObject,somIsA)
  2299.     (this,aClassObj);
  2300. }
  2301.  
  2302. /* method: somRespondsTo */
  2303. boolean   somRespondsTo(somId mId)
  2304. {
  2305.    return SOM_ResolveD(this,HIPushButton,SOMObject,somRespondsTo)
  2306.     (this,mId);
  2307. }
  2308.  
  2309. /* method: somIsInstanceOf */
  2310. boolean   somIsInstanceOf(SOMClass* aClassObj)
  2311. {
  2312.    return SOM_ResolveD(this,HIPushButton,SOMObject,somIsInstanceOf)
  2313.     (this,aClassObj);
  2314. }
  2315.  
  2316. /* va_list method: somDispatch */
  2317. /* the va_list invocation form */
  2318. boolean   HIPushButton_somDispatch(somToken* retValue,
  2319.         somId methodId,
  2320.         va_list ap)
  2321. {
  2322.    return SOM_ResolveD(this,HIPushButton,SOMObject,somDispatch)
  2323.     (this,retValue,methodId,ap);
  2324. }
  2325.  
  2326. /* the varargs invocation form */
  2327. boolean   somDispatch(somToken* retValue,
  2328.         somId methodId,
  2329.         ...)
  2330. {
  2331.    va_list ap;
  2332.    va_start(ap, methodId);
  2333.       boolean __somResult = 
  2334.       (boolean) SOM_ResolveD(this,HIPushButton,SOMObject,somDispatch)
  2335.     (this,retValue,methodId,ap);
  2336.    va_end(ap);
  2337.    return __somResult;
  2338. }
  2339.  
  2340. /* va_list method: somClassDispatch */
  2341. /* the va_list invocation form */
  2342. boolean   HIPushButton_somClassDispatch(SOMClass* clsObj,
  2343.         somToken* retValue,
  2344.         somId methodId,
  2345.         va_list ap)
  2346. {
  2347.    return SOM_ResolveD(this,HIPushButton,SOMObject,somClassDispatch)
  2348.     (this,clsObj,retValue,methodId,ap);
  2349. }
  2350.  
  2351. /* the varargs invocation form */
  2352. boolean   somClassDispatch(SOMClass* clsObj,
  2353.         somToken* retValue,
  2354.         somId methodId,
  2355.         ...)
  2356. {
  2357.    va_list ap;
  2358.    va_start(ap, methodId);
  2359.       boolean __somResult = 
  2360.       (boolean) SOM_ResolveD(this,HIPushButton,SOMObject,somClassDispatch)
  2361.     (this,clsObj,retValue,methodId,ap);
  2362.    va_end(ap);
  2363.    return __somResult;
  2364. }
  2365.  
  2366. /* method: somCastObj */
  2367. boolean   somCastObj(SOMClass* cls)
  2368. {
  2369.    return SOM_ResolveD(this,HIPushButton,SOMObject,somCastObj)
  2370.     (this,cls);
  2371. }
  2372.  
  2373. /* method: somResetObj */
  2374. boolean   somResetObj()
  2375. {
  2376.    return SOM_ResolveD(this,HIPushButton,SOMObject,somResetObj)
  2377.     (this);
  2378. }
  2379.  
  2380. /* method: somPrintSelf */
  2381. SOMObject*   somPrintSelf()
  2382. {
  2383.    return SOM_ResolveD(this,HIPushButton,SOMObject,somPrintSelf)
  2384.     (this);
  2385. }
  2386.  
  2387. /* method: somDumpSelf */
  2388. void   somDumpSelf(long level)
  2389. {
  2390.    SOM_ResolveD(this,HIPushButton,SOMObject,somDumpSelf)
  2391.     (this,level);
  2392. }
  2393.  
  2394. /* method: somDumpSelfInt */
  2395. void   somDumpSelfInt(long level)
  2396. {
  2397.    SOM_ResolveD(this,HIPushButton,SOMObject,somDumpSelfInt)
  2398.     (this,level);
  2399. }
  2400.  
  2401. };   /* HIPushButton */
  2402.  
  2403.  
  2404.  
  2405. #endif       /* SOM_HIPushButton_xh */
  2406.  
  2407. #ifndef SOM_HIBevelButton_xh
  2408. #define SOM_HIBevelButton_xh
  2409.  
  2410. class HIBevelButton;
  2411.  
  2412. #define HIBevelButton_MajorVersion 0
  2413. #define HIBevelButton_MinorVersion 0
  2414.  
  2415. /* C++ SOM defs */
  2416. #include <somcls.xh>
  2417. #include <somcm.xh>
  2418.  
  2419. /* C++ parent defs */
  2420. #ifndef SOM_HIControl_xh
  2421. #include <HIControls.xh>
  2422. #endif
  2423.  
  2424. #ifndef HIBevelButton_API
  2425. #define HIBevelButton_API
  2426. /*
  2427.  * -- The Class API
  2428.  */
  2429.  
  2430. /*
  2431.  * Start of user-defined types:
  2432.  */
  2433.  
  2434. /*
  2435.  * End of user-defined types.
  2436.  */
  2437.  
  2438. #ifdef OLDIBMSOMAPISUPPORT
  2439. #define HIBevelButtonCClassData HIBevelButtonClassData
  2440. #define HIBevelButtonNewClass(major,minor) somNewVersionedClassReference(HIBevelButton,major,minor)
  2441. #endif
  2442.  
  2443. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  2444. #define HIBevelButtonMetaClass SOMClass
  2445.  
  2446. #if PRAGMA_ALIGN_SUPPORTED
  2447. #  pragma options align=power
  2448. #endif
  2449.  
  2450. /* The API to the HIBevelButton class object, and the methods it introduces. */
  2451. SOMEXTERN struct HIBevelButtonClassDataStructure {
  2452. #ifdef OLDIBMSOMAPISUPPORT
  2453.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  2454. #else
  2455.     long zero;
  2456. #endif
  2457.     somStaticClassInfo *sci;
  2458.     somDToken        instanceDataToken;
  2459.     long reserved [3];
  2460.     somMToken InitBevelButton;
  2461.     somMToken SetBehavior;
  2462.     somMToken GetBehavior;
  2463. } SOMDLINK HIBevelButtonClassData;
  2464.  
  2465. #if PRAGMA_ALIGN_SUPPORTED
  2466. #  pragma options align=reset
  2467. #endif
  2468.  
  2469. #if !defined(HIBevelButton_Class_Source) && !defined(SOM_Module_hicontrols_Source)
  2470. #if PRAGMA_IMPORT_SUPPORTED
  2471. #pragma import list HIBevelButtonClassData
  2472. #endif
  2473. #endif
  2474.  
  2475.  
  2476. /*
  2477.  * -- Typedefs for HIBevelButton Method Procedures
  2478.  */
  2479. SOMEXTERN {
  2480. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_InitBevelButton)(HIBevelButton *somSelf, Environment *ev,
  2481.         RefLabel* identifier,
  2482.         HIWindow* window,
  2483.         Rect* bounds,
  2484.         HIControlBehavior behavior);
  2485. typedef void   (* SOMLINK somTD_HIBevelButton_SetBehavior)(HIBevelButton *somSelf, Environment *ev,
  2486.         HIControlBehavior newBehavior);
  2487. typedef HIControlBehavior   (* SOMLINK somTD_HIBevelButton_GetBehavior)(HIBevelButton *somSelf, Environment *ev);
  2488.  
  2489. /*
  2490.  * -- Typedefs for Inherited Methods
  2491.  */
  2492. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_InitControl)(HIBevelButton *somSelf, Environment *ev,
  2493.         RefLabel* identifier,
  2494.         HIWindow* window,
  2495.         Rect* bounds,
  2496.         SInt32 value,
  2497.         SInt32 minimumValue,
  2498.         SInt32 maximumValue);
  2499. typedef void   (* SOMLINK somTD_HIBevelButton_SetValue)(HIBevelButton *somSelf, Environment *ev,
  2500.         SInt32 newValue);
  2501. typedef SInt32   (* SOMLINK somTD_HIBevelButton_GetValue)(HIBevelButton *somSelf, Environment *ev);
  2502. typedef void   (* SOMLINK somTD_HIBevelButton_SetMinimum)(HIBevelButton *somSelf, Environment *ev,
  2503.         SInt32 newMinimum);
  2504. typedef SInt32   (* SOMLINK somTD_HIBevelButton_GetMinimum)(HIBevelButton *somSelf, Environment *ev);
  2505. typedef void   (* SOMLINK somTD_HIBevelButton_SetMaximum)(HIBevelButton *somSelf, Environment *ev,
  2506.         SInt32 newMaximum);
  2507. typedef SInt32   (* SOMLINK somTD_HIBevelButton_GetMaximum)(HIBevelButton *somSelf, Environment *ev);
  2508. typedef void   (* SOMLINK somTD_HIBevelButton_SimulateSelection)(HIBevelButton *somSelf, Environment *ev);
  2509. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIBevelButton_GetEmbeddingParent)(HIBevelButton *somSelf, Environment *ev);
  2510. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_InitPanel)(HIBevelButton *somSelf, Environment *ev,
  2511.         RefLabel* identifier,
  2512.         HIWindow* window,
  2513.         Rect* bounds);
  2514. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_RegisterInterestInAppleEvent)(HIBevelButton *somSelf, Environment *ev,
  2515.         AEHandlerTableRef table,
  2516.         AEEventClass eventClass,
  2517.         AEEventID eventID,
  2518.         HIEventRoutingType eventRouting);
  2519. typedef boolean   (* SOMLINK somTD_HIBevelButton_HasValidContent)(HIBevelButton *somSelf, Environment *ev);
  2520. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_GetDeepCollectionItemData)(HIBevelButton *somSelf, Environment *ev,
  2521.         CollectionTag tag,
  2522.         SInt32 id,
  2523.         ByteCount sizeAllowed,
  2524.         ByteCount* sizeReturned,
  2525.         void* itemData);
  2526. typedef HIWindow*   (* SOMLINK somTD_HIBevelButton_GetWindow)(HIBevelButton *somSelf, Environment *ev);
  2527. typedef CGrafPtr   (* SOMLINK somTD_HIBevelButton_GetPort)(HIBevelButton *somSelf, Environment *ev);
  2528. typedef void   (* SOMLINK somTD_HIBevelButton_GetRefLabel)(HIBevelButton *somSelf, Environment *ev,
  2529.         RefLabel* identifier);
  2530. typedef Collection   (* SOMLINK somTD_HIBevelButton_GetCollection)(HIBevelButton *somSelf, Environment *ev);
  2531. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_Init)(HIBevelButton *somSelf, Environment *ev,
  2532.         RefLabel* identifier,
  2533.         Rect* boundingRect);
  2534. typedef void   (* SOMLINK somTD_HIBevelButton_Terminate)(HIBevelButton *somSelf, Environment *ev);
  2535. typedef HIObject*   (* SOMLINK somTD_HIBevelButton_Clone)(HIBevelButton *somSelf, Environment *ev);
  2536. typedef void   (* SOMLINK somTD_HIBevelButton_Release)(HIBevelButton *somSelf, Environment *ev);
  2537. typedef ItemCount   (* SOMLINK somTD_HIBevelButton_GetOwnerCount)(HIBevelButton *somSelf, Environment *ev);
  2538. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_InitFromAERecord)(HIBevelButton *somSelf, Environment *ev,
  2539.         AESubDesc* baseInitializerData,
  2540.         AESubDesc* initializerDataForClass,
  2541.         HIAERecordDataFormat dataFormat);
  2542. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_WriteToAERecord)(HIBevelButton *somSelf, Environment *ev,
  2543.         AERecord* dataForSubclass,
  2544.         AERecord* objectData,
  2545.         HIAERecordDataFormat dataFormat);
  2546. typedef void   (* SOMLINK somTD_HIBevelButton_CalculateOptimalSize)(HIBevelButton *somSelf, Environment *ev,
  2547.         SInt16* optimalWidth,
  2548.         SInt16* optimalHeight);
  2549. typedef void   (* SOMLINK somTD_HIBevelButton_GetBoundingRect)(HIBevelButton *somSelf, Environment *ev,
  2550.         HICoordinateSystem coordinate,
  2551.         Rect* boundingRect);
  2552. typedef void   (* SOMLINK somTD_HIBevelButton_SetBoundingRect)(HIBevelButton *somSelf, Environment *ev,
  2553.         HICoordinateSystem coordinate,
  2554.         Rect* newBoundingRect);
  2555. typedef void   (* SOMLINK somTD_HIBevelButton_SetPosition)(HIBevelButton *somSelf, Environment *ev,
  2556.         HICoordinateSystem coordinate,
  2557.         Point* newPosition);
  2558. typedef void   (* SOMLINK somTD_HIBevelButton_SetSize)(HIBevelButton *somSelf, Environment *ev,
  2559.         SInt16 width,
  2560.         SInt16 height);
  2561. typedef void   (* SOMLINK somTD_HIBevelButton_GetUpdateRect)(HIBevelButton *somSelf, Environment *ev,
  2562.         HICoordinateSystem coordinate,
  2563.         Rect* updateRect);
  2564. typedef void   (* SOMLINK somTD_HIBevelButton_Enable)(HIBevelButton *somSelf, Environment *ev);
  2565. typedef void   (* SOMLINK somTD_HIBevelButton_Disable)(HIBevelButton *somSelf, Environment *ev);
  2566. typedef boolean   (* SOMLINK somTD_HIBevelButton_IsEnabled)(HIBevelButton *somSelf, Environment *ev);
  2567. typedef void   (* SOMLINK somTD_HIBevelButton_Show)(HIBevelButton *somSelf, Environment *ev);
  2568. typedef void   (* SOMLINK somTD_HIBevelButton_Hide)(HIBevelButton *somSelf, Environment *ev);
  2569. typedef boolean   (* SOMLINK somTD_HIBevelButton_IsVisible)(HIBevelButton *somSelf, Environment *ev);
  2570. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_HandleAppleEvent)(HIBevelButton *somSelf, Environment *ev,
  2571.         AEEventClass eventClass,
  2572.         AEEventID eventID,
  2573.         AppleEvent* theEvent,
  2574.         AppleEvent* reply,
  2575.         AEHandlerTableRef handlerTableRef);
  2576. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_HandleActivate)(HIBevelButton *somSelf, Environment *ev,
  2577.         AppleEvent* theEvent,
  2578.         AppleEvent* reply,
  2579.         AEHandlerTableRef handlerTableRef);
  2580. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_HandleDeactivate)(HIBevelButton *somSelf, Environment *ev,
  2581.         AppleEvent* theEvent,
  2582.         AppleEvent* reply,
  2583.         AEHandlerTableRef handlerTableRef);
  2584. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_HandleNavigation)(HIBevelButton *somSelf, Environment *ev,
  2585.         SInt8 key,
  2586.         SInt8 keyCode,
  2587.         EventModifiers modifiers,
  2588.         AppleEvent* theEvent,
  2589.         AppleEvent* reply,
  2590.         AEHandlerTableRef handlerTableRef);
  2591. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_HandleMouseDownInContent)(HIBevelButton *somSelf, Environment *ev,
  2592.         Point* portLocalWhere,
  2593.         EventModifiers modifiers,
  2594.         AppleEvent* theEvent,
  2595.         AppleEvent* reply,
  2596.         AEHandlerTableRef handlerTableRef);
  2597. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_HandleMouseMovedInContent)(HIBevelButton *somSelf, Environment *ev,
  2598.         Point* portLocalWhere,
  2599.         EventModifiers modifiers,
  2600.         AppleEvent* theEvent,
  2601.         AppleEvent* reply,
  2602.         AEHandlerTableRef handlerTableRef);
  2603. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_HandleMouseStoppedMovingInContent)(HIBevelButton *somSelf, Environment *ev,
  2604.         Point* portLocalWhere,
  2605.         EventModifiers modifiers,
  2606.         AppleEvent* theEvent,
  2607.         AppleEvent* reply,
  2608.         AEHandlerTableRef handlerTableRef);
  2609. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_HandleMouseUpInContent)(HIBevelButton *somSelf, Environment *ev,
  2610.         Point* portLocalWhere,
  2611.         EventModifiers modifiers,
  2612.         AppleEvent* theEvent,
  2613.         AppleEvent* reply,
  2614.         AEHandlerTableRef handlerTableRef);
  2615. typedef void   (* SOMLINK somTD_HIBevelButton_TakeUserInputFocus)(HIBevelButton *somSelf, Environment *ev);
  2616. typedef void   (* SOMLINK somTD_HIBevelButton_ReleaseUserInputFocus)(HIBevelButton *somSelf, Environment *ev);
  2617. typedef boolean   (* SOMLINK somTD_HIBevelButton_HasUserInputFocus)(HIBevelButton *somSelf, Environment *ev);
  2618. typedef boolean   (* SOMLINK somTD_HIBevelButton_CanReleaseUserInputFocus)(HIBevelButton *somSelf, Environment *ev);
  2619. typedef void   (* SOMLINK somTD_HIBevelButton_SetUserInputFocusFlags)(HIBevelButton *somSelf, Environment *ev,
  2620.         HIUserInputFocusFlags flags);
  2621. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIBevelButton_GetUserInputFocusFlags)(HIBevelButton *somSelf, Environment *ev);
  2622. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_SetTitle)(HIBevelButton *somSelf, Environment *ev,
  2623.         ConstHIImageRef title,
  2624.         HIAdoptionFlags disposalAdoptionFlags);
  2625. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_GetTitle)(HIBevelButton *somSelf, Environment *ev,
  2626.         HIImageRef* title);
  2627. typedef void   (* SOMLINK somTD_HIBevelButton_Draw)(HIBevelButton *somSelf, Environment *ev,
  2628.         CGrafPtr whichPort,
  2629.         RgnHandle drawRgn);
  2630. typedef void   (* SOMLINK somTD_HIBevelButton_Erase)(HIBevelButton *somSelf, Environment *ev,
  2631.         CGrafPtr whichPort,
  2632.         RgnHandle eraseRgn);
  2633. typedef void   (* SOMLINK somTD_HIBevelButton_Invalidate)(HIBevelButton *somSelf, Environment *ev);
  2634. typedef HIDrawingMode   (* SOMLINK somTD_HIBevelButton_GetDrawingMode)(HIBevelButton *somSelf, Environment *ev);
  2635. typedef void   (* SOMLINK somTD_HIBevelButton_SetDrawingMode)(HIBevelButton *somSelf, Environment *ev,
  2636.         HIDrawingMode drawingMode);
  2637. typedef void   (* SOMLINK somTD_HIBevelButton_SetBackgroundPattern)(HIBevelButton *somSelf, Environment *ev,
  2638.         PixPatHandle backgroundPattern);
  2639. typedef PixPatHandle   (* SOMLINK somTD_HIBevelButton_GetBackgroundPattern)(HIBevelButton *somSelf, Environment *ev);
  2640. typedef void   (* SOMLINK somTD_HIBevelButton_Cut)(HIBevelButton *somSelf, Environment *ev);
  2641. typedef void   (* SOMLINK somTD_HIBevelButton_Copy)(HIBevelButton *somSelf, Environment *ev);
  2642. typedef void   (* SOMLINK somTD_HIBevelButton_Paste)(HIBevelButton *somSelf, Environment *ev);
  2643. typedef void   (* SOMLINK somTD_HIBevelButton_Clear)(HIBevelButton *somSelf, Environment *ev);
  2644. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIBevelButton_GetClipboardSupportFlags)(HIBevelButton *somSelf, Environment *ev);
  2645. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_AddStateChangeCallback)(HIBevelButton *somSelf, Environment *ev,
  2646.         HIStateChangeCallbackProcPtr changedStateCallback,
  2647.         HIStateChangeCallbackRef* newCallbackRef);
  2648. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_RemoveStateChangeCallback)(HIBevelButton *somSelf, Environment *ev,
  2649.         HIStateChangeCallbackRef callbackRefToRemove);
  2650. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_GetHIObjectFromRefLabel)(Environment *ev,
  2651.         RefLabel* identifier,
  2652.         ItemCount requestedObjects,
  2653.         ItemCount* totalObjects,
  2654.         HIObject** theObjects);
  2655. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_GetNewHIObject)(Environment *ev,
  2656.         AESubDesc* objectInitializer,
  2657.         HIObject** newObject);
  2658. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_GetNewHIObjectFromResource)(Environment *ev,
  2659.         ResID objectInitializerResourceID,
  2660.         HIObject** newObject);
  2661. typedef void   (* SOMLINK somTD_HIBevelButton_DrawContent)(HIBevelButton *somSelf, Environment *ev,
  2662.         CGrafPtr whichPort,
  2663.         RgnHandle drawRgn);
  2664. typedef void   (* SOMLINK somTD_HIBevelButton_EraseContent)(HIBevelButton *somSelf, Environment *ev,
  2665.         CGrafPtr whichPort,
  2666.         RgnHandle regionToErase);
  2667. typedef void   (* SOMLINK somTD_HIBevelButton_TranslatePoint)(HIBevelButton *somSelf, Environment *ev,
  2668.         HICoordinateSystem translateFrom,
  2669.         HICoordinateSystem translateTo,
  2670.         Point* sourcePoint,
  2671.         Point* translatedPoint);
  2672. typedef void   (* SOMLINK somTD_HIBevelButton_TranslateRect)(HIBevelButton *somSelf, Environment *ev,
  2673.         HICoordinateSystem translateFrom,
  2674.         HICoordinateSystem translateTo,
  2675.         Rect* sourceRect,
  2676.         Rect* translatedRect);
  2677. typedef void   (* SOMLINK somTD_HIBevelButton_StateChanged)(HIBevelButton *somSelf, Environment *ev,
  2678.         HIStateChangeCodeCreator selectorCreator,
  2679.         HIStateChangeCode changedCode);
  2680. typedef void   (* SOMLINK somTD_HIBevelButton_SetClipboardSupportFlags)(HIBevelButton *somSelf, Environment *ev,
  2681.         HIClipboardSupportFlags flags);
  2682. typedef OSStatus   (* SOMLINK somTD_HIBevelButton_Verify)(HIBevelButton *somSelf, Environment *ev);
  2683. typedef void   (* SOMLINK somTD_HIBevelButton_somInit)(HIBevelButton *somSelf);
  2684. typedef void   (* SOMLINK somTD_HIBevelButton_somUninit)(HIBevelButton *somSelf);
  2685. typedef SOMObject*   (* SOMLINK somTD_HIBevelButton_somDuplicateReference)(HIBevelButton *somSelf);
  2686. typedef boolean   (* SOMLINK somTD_HIBevelButton_somCompareReference)(HIBevelButton *somSelf,
  2687.         SOMObject* anObject);
  2688. typedef SOMObject*   (* SOMLINK somTD_HIBevelButton_somRelease)(HIBevelButton *somSelf);
  2689. typedef void   (* SOMLINK somTD_HIBevelButton_somFree)(HIBevelButton *somSelf);
  2690. typedef boolean   (* SOMLINK somTD_HIBevelButton_somCanDelete)(HIBevelButton *somSelf);
  2691. typedef SOMClass*   (* SOMLINK somTD_HIBevelButton_somGetClass)(HIBevelButton *somSelf);
  2692. typedef corbastring   (* SOMLINK somTD_HIBevelButton_somGetClassName)(HIBevelButton *somSelf);
  2693. typedef long   (* SOMLINK somTD_HIBevelButton_somGetSize)(HIBevelButton *somSelf);
  2694. typedef boolean   (* SOMLINK somTD_HIBevelButton_somIsA)(HIBevelButton *somSelf,
  2695.         SOMClass* aClassObj);
  2696. typedef boolean   (* SOMLINK somTD_HIBevelButton_somRespondsTo)(HIBevelButton *somSelf,
  2697.         somId mId);
  2698. typedef boolean   (* SOMLINK somTD_HIBevelButton_somIsInstanceOf)(HIBevelButton *somSelf,
  2699.         SOMClass* aClassObj);
  2700. typedef boolean   (* SOMLINK somTD_HIBevelButton_somDispatch)(HIBevelButton *somSelf,
  2701.         somToken* retValue,
  2702.         somId methodId,
  2703.         va_list ap);
  2704. typedef boolean   (* SOMLINK somTD_HIBevelButton_somClassDispatch)(HIBevelButton *somSelf,
  2705.         SOMClass* clsObj,
  2706.         somToken* retValue,
  2707.         somId methodId,
  2708.         va_list ap);
  2709. typedef boolean   (* SOMLINK somTD_HIBevelButton_somCastObj)(HIBevelButton *somSelf,
  2710.         SOMClass* cls);
  2711. typedef boolean   (* SOMLINK somTD_HIBevelButton_somResetObj)(HIBevelButton *somSelf);
  2712. typedef SOMObject*   (* SOMLINK somTD_HIBevelButton_somPrintSelf)(HIBevelButton *somSelf);
  2713. typedef void   (* SOMLINK somTD_HIBevelButton_somDumpSelf)(HIBevelButton *somSelf,
  2714.         long level);
  2715. typedef void   (* SOMLINK somTD_HIBevelButton_somDumpSelfInt)(HIBevelButton *somSelf,
  2716.         long level);
  2717. }
  2718.  
  2719. #endif /* HIBevelButton_API */
  2720.  
  2721.  
  2722. /*
  2723.  * -- This emitter treats Method Tokens as Thunks by default.
  2724.  * -- Use the sc modifier "nothunks" to change this default
  2725.  */
  2726. #undef somresolve_
  2727. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  2728.  
  2729. /*
  2730.  * -- The C++ Wrapper Class for HIBevelButton
  2731.  */
  2732. class HIBevelButton : public HIControl
  2733. {
  2734. public:
  2735.  
  2736. // HIBevelButton::new registers use of the class object, and then uses somNew
  2737. // to allocate memory and load the object method table pointer. 
  2738. void *operator new(size_t size)
  2739. {
  2740.     SOM_IgnoreWarning(size);
  2741.     // Allocate memory using the default allocator for HIBevelButton, and
  2742.     // clear mem & set method table pointer, call basic initialization
  2743.     return (void*) somNewObject(HIBevelButton);
  2744. }
  2745.  
  2746. // HIBevelButton::delete uses the default deallocator for the object's class.
  2747. void operator delete(void * obj)
  2748. {
  2749.     if (obj) {
  2750.         SOM_Resolve(obj,SOMObject,somFree)
  2751.            ( (SOMObject*) obj );
  2752.     }
  2753. }
  2754.  
  2755. /* method: InitBevelButton */
  2756. OSStatus   InitBevelButton(Environment *ev,
  2757.         RefLabel* identifier,
  2758.         HIWindow* window,
  2759.         Rect* bounds,
  2760.         HIControlBehavior behavior)
  2761. {
  2762.    return SOM_ResolveD(this,HIBevelButton,HIBevelButton,InitBevelButton)
  2763.     (this,ev,identifier,window,bounds,behavior);
  2764. }
  2765.  
  2766. /* method: SetBehavior */
  2767. void   SetBehavior(Environment *ev,
  2768.         HIControlBehavior newBehavior)
  2769. {
  2770.    SOM_ResolveD(this,HIBevelButton,HIBevelButton,SetBehavior)
  2771.     (this,ev,newBehavior);
  2772. }
  2773.  
  2774. /* method: GetBehavior */
  2775. HIControlBehavior   GetBehavior(Environment *ev)
  2776. {
  2777.    return SOM_ResolveD(this,HIBevelButton,HIBevelButton,GetBehavior)
  2778.     (this,ev);
  2779. }
  2780.  
  2781.  
  2782. /*
  2783.  * -- Inherited methods
  2784.  */
  2785. /* method: InitControl */
  2786. OSStatus   InitControl(Environment *ev,
  2787.         RefLabel* identifier,
  2788.         HIWindow* window,
  2789.         Rect* bounds,
  2790.         SInt32 value,
  2791.         SInt32 minimumValue,
  2792.         SInt32 maximumValue)
  2793. {
  2794.    return SOM_ResolveD(this,HIBevelButton,HIControl,InitControl)
  2795.     (this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
  2796. }
  2797.  
  2798. /* method: SetValue */
  2799. void   SetValue(Environment *ev,
  2800.         SInt32 newValue)
  2801. {
  2802.    SOM_ResolveD(this,HIBevelButton,HIControl,SetValue)
  2803.     (this,ev,newValue);
  2804. }
  2805.  
  2806. /* method: GetValue */
  2807. SInt32   GetValue(Environment *ev)
  2808. {
  2809.    return SOM_ResolveD(this,HIBevelButton,HIControl,GetValue)
  2810.     (this,ev);
  2811. }
  2812.  
  2813. /* method: SetMinimum */
  2814. void   SetMinimum(Environment *ev,
  2815.         SInt32 newMinimum)
  2816. {
  2817.    SOM_ResolveD(this,HIBevelButton,HIControl,SetMinimum)
  2818.     (this,ev,newMinimum);
  2819. }
  2820.  
  2821. /* method: GetMinimum */
  2822. SInt32   GetMinimum(Environment *ev)
  2823. {
  2824.    return SOM_ResolveD(this,HIBevelButton,HIControl,GetMinimum)
  2825.     (this,ev);
  2826. }
  2827.  
  2828. /* method: SetMaximum */
  2829. void   SetMaximum(Environment *ev,
  2830.         SInt32 newMaximum)
  2831. {
  2832.    SOM_ResolveD(this,HIBevelButton,HIControl,SetMaximum)
  2833.     (this,ev,newMaximum);
  2834. }
  2835.  
  2836. /* method: GetMaximum */
  2837. SInt32   GetMaximum(Environment *ev)
  2838. {
  2839.    return SOM_ResolveD(this,HIBevelButton,HIControl,GetMaximum)
  2840.     (this,ev);
  2841. }
  2842.  
  2843. /* method: SimulateSelection */
  2844. void   SimulateSelection(Environment *ev)
  2845. {
  2846.    SOM_ResolveD(this,HIBevelButton,HIControl,SimulateSelection)
  2847.     (this,ev);
  2848. }
  2849.  
  2850. /* method: GetEmbeddingParent */
  2851. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  2852. {
  2853.    return SOM_ResolveD(this,HIBevelButton,HIPanel,GetEmbeddingParent)
  2854.     (this,ev);
  2855. }
  2856.  
  2857. /* method: InitPanel */
  2858. OSStatus   InitPanel(Environment *ev,
  2859.         RefLabel* identifier,
  2860.         HIWindow* window,
  2861.         Rect* bounds)
  2862. {
  2863.    return SOM_ResolveD(this,HIBevelButton,HIPanel,InitPanel)
  2864.     (this,ev,identifier,window,bounds);
  2865. }
  2866.  
  2867. /* method: RegisterInterestInAppleEvent */
  2868. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  2869.         AEHandlerTableRef table,
  2870.         AEEventClass eventClass,
  2871.         AEEventID eventID,
  2872.         HIEventRoutingType eventRouting)
  2873. {
  2874.    return SOM_ResolveD(this,HIBevelButton,HIPanel,RegisterInterestInAppleEvent)
  2875.     (this,ev,table,eventClass,eventID,eventRouting);
  2876. }
  2877.  
  2878. /* method: HasValidContent */
  2879. boolean   HasValidContent(Environment *ev)
  2880. {
  2881.    return SOM_ResolveD(this,HIBevelButton,HIPanel,HasValidContent)
  2882.     (this,ev);
  2883. }
  2884.  
  2885. /* method: GetDeepCollectionItemData */
  2886. OSStatus   GetDeepCollectionItemData(Environment *ev,
  2887.         CollectionTag tag,
  2888.         SInt32 id,
  2889.         ByteCount sizeAllowed,
  2890.         ByteCount* sizeReturned,
  2891.         void* itemData)
  2892. {
  2893.    return SOM_ResolveD(this,HIBevelButton,HIPanel,GetDeepCollectionItemData)
  2894.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  2895. }
  2896.  
  2897. /* method: GetWindow */
  2898. HIWindow*   GetWindow(Environment *ev)
  2899. {
  2900.    return SOM_ResolveD(this,HIBevelButton,HIObject,GetWindow)
  2901.     (this,ev);
  2902. }
  2903.  
  2904. /* method: GetPort */
  2905. CGrafPtr   GetPort(Environment *ev)
  2906. {
  2907.    return SOM_ResolveD(this,HIBevelButton,HIObject,GetPort)
  2908.     (this,ev);
  2909. }
  2910.  
  2911. /* method: GetRefLabel */
  2912. void   GetRefLabel(Environment *ev,
  2913.         RefLabel* identifier)
  2914. {
  2915.    SOM_ResolveD(this,HIBevelButton,HIObject,GetRefLabel)
  2916.     (this,ev,identifier);
  2917. }
  2918.  
  2919. /* method: GetCollection */
  2920. Collection   GetCollection(Environment *ev)
  2921. {
  2922.    return SOM_ResolveD(this,HIBevelButton,HIObject,GetCollection)
  2923.     (this,ev);
  2924. }
  2925.  
  2926. /* method: Init */
  2927. OSStatus   Init(Environment *ev,
  2928.         RefLabel* identifier,
  2929.         Rect* boundingRect)
  2930. {
  2931.    return SOM_ResolveD(this,HIBevelButton,HIObject,Init)
  2932.     (this,ev,identifier,boundingRect);
  2933. }
  2934.  
  2935. /* method: Terminate */
  2936. void   Terminate(Environment *ev)
  2937. {
  2938.    SOM_ResolveD(this,HIBevelButton,HIObject,Terminate)
  2939.     (this,ev);
  2940. }
  2941.  
  2942. /* method: Clone */
  2943. HIObject*   Clone(Environment *ev)
  2944. {
  2945.    return SOM_ResolveD(this,HIBevelButton,HIObject,Clone)
  2946.     (this,ev);
  2947. }
  2948.  
  2949. /* method: Release */
  2950. void   Release(Environment *ev)
  2951. {
  2952.    SOM_ResolveD(this,HIBevelButton,HIObject,Release)
  2953.     (this,ev);
  2954. }
  2955.  
  2956. /* method: GetOwnerCount */
  2957. ItemCount   GetOwnerCount(Environment *ev)
  2958. {
  2959.    return SOM_ResolveD(this,HIBevelButton,HIObject,GetOwnerCount)
  2960.     (this,ev);
  2961. }
  2962.  
  2963. /* method: InitFromAERecord */
  2964. OSStatus   InitFromAERecord(Environment *ev,
  2965.         AESubDesc* baseInitializerData,
  2966.         AESubDesc* initializerDataForClass,
  2967.         HIAERecordDataFormat dataFormat)
  2968. {
  2969.    return SOM_ResolveD(this,HIBevelButton,HIObject,InitFromAERecord)
  2970.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  2971. }
  2972.  
  2973. /* method: WriteToAERecord */
  2974. OSStatus   WriteToAERecord(Environment *ev,
  2975.         AERecord* dataForSubclass,
  2976.         AERecord* objectData,
  2977.         HIAERecordDataFormat dataFormat)
  2978. {
  2979.    return SOM_ResolveD(this,HIBevelButton,HIObject,WriteToAERecord)
  2980.     (this,ev,dataForSubclass,objectData,dataFormat);
  2981. }
  2982.  
  2983. /* method: CalculateOptimalSize */
  2984. void   CalculateOptimalSize(Environment *ev,
  2985.         SInt16* optimalWidth,
  2986.         SInt16* optimalHeight)
  2987. {
  2988.    SOM_ResolveD(this,HIBevelButton,HIObject,CalculateOptimalSize)
  2989.     (this,ev,optimalWidth,optimalHeight);
  2990. }
  2991.  
  2992. /* method: GetBoundingRect */
  2993. void   GetBoundingRect(Environment *ev,
  2994.         HICoordinateSystem coordinate,
  2995.         Rect* boundingRect)
  2996. {
  2997.    SOM_ResolveD(this,HIBevelButton,HIObject,GetBoundingRect)
  2998.     (this,ev,coordinate,boundingRect);
  2999. }
  3000.  
  3001. /* method: SetBoundingRect */
  3002. void   SetBoundingRect(Environment *ev,
  3003.         HICoordinateSystem coordinate,
  3004.         Rect* newBoundingRect)
  3005. {
  3006.    SOM_ResolveD(this,HIBevelButton,HIObject,SetBoundingRect)
  3007.     (this,ev,coordinate,newBoundingRect);
  3008. }
  3009.  
  3010. /* method: SetPosition */
  3011. void   SetPosition(Environment *ev,
  3012.         HICoordinateSystem coordinate,
  3013.         Point* newPosition)
  3014. {
  3015.    SOM_ResolveD(this,HIBevelButton,HIObject,SetPosition)
  3016.     (this,ev,coordinate,newPosition);
  3017. }
  3018.  
  3019. /* method: SetSize */
  3020. void   SetSize(Environment *ev,
  3021.         SInt16 width,
  3022.         SInt16 height)
  3023. {
  3024.    SOM_ResolveD(this,HIBevelButton,HIObject,SetSize)
  3025.     (this,ev,width,height);
  3026. }
  3027.  
  3028. /* method: GetUpdateRect */
  3029. void   GetUpdateRect(Environment *ev,
  3030.         HICoordinateSystem coordinate,
  3031.         Rect* updateRect)
  3032. {
  3033.    SOM_ResolveD(this,HIBevelButton,HIObject,GetUpdateRect)
  3034.     (this,ev,coordinate,updateRect);
  3035. }
  3036.  
  3037. /* method: Enable */
  3038. void   Enable(Environment *ev)
  3039. {
  3040.    SOM_ResolveD(this,HIBevelButton,HIObject,Enable)
  3041.     (this,ev);
  3042. }
  3043.  
  3044. /* method: Disable */
  3045. void   Disable(Environment *ev)
  3046. {
  3047.    SOM_ResolveD(this,HIBevelButton,HIObject,Disable)
  3048.     (this,ev);
  3049. }
  3050.  
  3051. /* method: IsEnabled */
  3052. boolean   IsEnabled(Environment *ev)
  3053. {
  3054.    return SOM_ResolveD(this,HIBevelButton,HIObject,IsEnabled)
  3055.     (this,ev);
  3056. }
  3057.  
  3058. /* method: Show */
  3059. void   Show(Environment *ev)
  3060. {
  3061.    SOM_ResolveD(this,HIBevelButton,HIObject,Show)
  3062.     (this,ev);
  3063. }
  3064.  
  3065. /* method: Hide */
  3066. void   Hide(Environment *ev)
  3067. {
  3068.    SOM_ResolveD(this,HIBevelButton,HIObject,Hide)
  3069.     (this,ev);
  3070. }
  3071.  
  3072. /* method: IsVisible */
  3073. boolean   IsVisible(Environment *ev)
  3074. {
  3075.    return SOM_ResolveD(this,HIBevelButton,HIObject,IsVisible)
  3076.     (this,ev);
  3077. }
  3078.  
  3079. /* method: HandleAppleEvent */
  3080. OSStatus   HandleAppleEvent(Environment *ev,
  3081.         AEEventClass eventClass,
  3082.         AEEventID eventID,
  3083.         AppleEvent* theEvent,
  3084.         AppleEvent* reply,
  3085.         AEHandlerTableRef handlerTableRef)
  3086. {
  3087.    return SOM_ResolveD(this,HIBevelButton,HIObject,HandleAppleEvent)
  3088.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  3089. }
  3090.  
  3091. /* method: HandleActivate */
  3092. OSStatus   HandleActivate(Environment *ev,
  3093.         AppleEvent* theEvent,
  3094.         AppleEvent* reply,
  3095.         AEHandlerTableRef handlerTableRef)
  3096. {
  3097.    return SOM_ResolveD(this,HIBevelButton,HIObject,HandleActivate)
  3098.     (this,ev,theEvent,reply,handlerTableRef);
  3099. }
  3100.  
  3101. /* method: HandleDeactivate */
  3102. OSStatus   HandleDeactivate(Environment *ev,
  3103.         AppleEvent* theEvent,
  3104.         AppleEvent* reply,
  3105.         AEHandlerTableRef handlerTableRef)
  3106. {
  3107.    return SOM_ResolveD(this,HIBevelButton,HIObject,HandleDeactivate)
  3108.     (this,ev,theEvent,reply,handlerTableRef);
  3109. }
  3110.  
  3111. /* method: HandleNavigation */
  3112. OSStatus   HandleNavigation(Environment *ev,
  3113.         SInt8 key,
  3114.         SInt8 keyCode,
  3115.         EventModifiers modifiers,
  3116.         AppleEvent* theEvent,
  3117.         AppleEvent* reply,
  3118.         AEHandlerTableRef handlerTableRef)
  3119. {
  3120.    return SOM_ResolveD(this,HIBevelButton,HIObject,HandleNavigation)
  3121.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  3122. }
  3123.  
  3124. /* method: HandleMouseDownInContent */
  3125. OSStatus   HandleMouseDownInContent(Environment *ev,
  3126.         Point* portLocalWhere,
  3127.         EventModifiers modifiers,
  3128.         AppleEvent* theEvent,
  3129.         AppleEvent* reply,
  3130.         AEHandlerTableRef handlerTableRef)
  3131. {
  3132.    return SOM_ResolveD(this,HIBevelButton,HIObject,HandleMouseDownInContent)
  3133.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  3134. }
  3135.  
  3136. /* method: HandleMouseMovedInContent */
  3137. OSStatus   HandleMouseMovedInContent(Environment *ev,
  3138.         Point* portLocalWhere,
  3139.         EventModifiers modifiers,
  3140.         AppleEvent* theEvent,
  3141.         AppleEvent* reply,
  3142.         AEHandlerTableRef handlerTableRef)
  3143. {
  3144.    return SOM_ResolveD(this,HIBevelButton,HIObject,HandleMouseMovedInContent)
  3145.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  3146. }
  3147.  
  3148. /* method: HandleMouseStoppedMovingInContent */
  3149. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  3150.         Point* portLocalWhere,
  3151.         EventModifiers modifiers,
  3152.         AppleEvent* theEvent,
  3153.         AppleEvent* reply,
  3154.         AEHandlerTableRef handlerTableRef)
  3155. {
  3156.    return SOM_ResolveD(this,HIBevelButton,HIObject,HandleMouseStoppedMovingInContent)
  3157.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  3158. }
  3159.  
  3160. /* method: HandleMouseUpInContent */
  3161. OSStatus   HandleMouseUpInContent(Environment *ev,
  3162.         Point* portLocalWhere,
  3163.         EventModifiers modifiers,
  3164.         AppleEvent* theEvent,
  3165.         AppleEvent* reply,
  3166.         AEHandlerTableRef handlerTableRef)
  3167. {
  3168.    return SOM_ResolveD(this,HIBevelButton,HIObject,HandleMouseUpInContent)
  3169.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  3170. }
  3171.  
  3172. /* method: TakeUserInputFocus */
  3173. void   TakeUserInputFocus(Environment *ev)
  3174. {
  3175.    SOM_ResolveD(this,HIBevelButton,HIObject,TakeUserInputFocus)
  3176.     (this,ev);
  3177. }
  3178.  
  3179. /* method: ReleaseUserInputFocus */
  3180. void   ReleaseUserInputFocus(Environment *ev)
  3181. {
  3182.    SOM_ResolveD(this,HIBevelButton,HIObject,ReleaseUserInputFocus)
  3183.     (this,ev);
  3184. }
  3185.  
  3186. /* method: HasUserInputFocus */
  3187. boolean   HasUserInputFocus(Environment *ev)
  3188. {
  3189.    return SOM_ResolveD(this,HIBevelButton,HIObject,HasUserInputFocus)
  3190.     (this,ev);
  3191. }
  3192.  
  3193. /* method: CanReleaseUserInputFocus */
  3194. boolean   CanReleaseUserInputFocus(Environment *ev)
  3195. {
  3196.    return SOM_ResolveD(this,HIBevelButton,HIObject,CanReleaseUserInputFocus)
  3197.     (this,ev);
  3198. }
  3199.  
  3200. /* method: SetUserInputFocusFlags */
  3201. void   SetUserInputFocusFlags(Environment *ev,
  3202.         HIUserInputFocusFlags flags)
  3203. {
  3204.    SOM_ResolveD(this,HIBevelButton,HIObject,SetUserInputFocusFlags)
  3205.     (this,ev,flags);
  3206. }
  3207.  
  3208. /* method: GetUserInputFocusFlags */
  3209. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  3210. {
  3211.    return SOM_ResolveD(this,HIBevelButton,HIObject,GetUserInputFocusFlags)
  3212.     (this,ev);
  3213. }
  3214.  
  3215. /* method: SetTitle */
  3216. OSStatus   SetTitle(Environment *ev,
  3217.         ConstHIImageRef title,
  3218.         HIAdoptionFlags disposalAdoptionFlags)
  3219. {
  3220.    return SOM_ResolveD(this,HIBevelButton,HIObject,SetTitle)
  3221.     (this,ev,title,disposalAdoptionFlags);
  3222. }
  3223.  
  3224. /* method: GetTitle */
  3225. OSStatus   GetTitle(Environment *ev,
  3226.         HIImageRef* title)
  3227. {
  3228.    return SOM_ResolveD(this,HIBevelButton,HIObject,GetTitle)
  3229.     (this,ev,title);
  3230. }
  3231.  
  3232. /* method: Draw */
  3233. void   Draw(Environment *ev,
  3234.         CGrafPtr whichPort,
  3235.         RgnHandle drawRgn)
  3236. {
  3237.    SOM_ResolveD(this,HIBevelButton,HIObject,Draw)
  3238.     (this,ev,whichPort,drawRgn);
  3239. }
  3240.  
  3241. /* method: Erase */
  3242. void   Erase(Environment *ev,
  3243.         CGrafPtr whichPort,
  3244.         RgnHandle eraseRgn)
  3245. {
  3246.    SOM_ResolveD(this,HIBevelButton,HIObject,Erase)
  3247.     (this,ev,whichPort,eraseRgn);
  3248. }
  3249.  
  3250. /* method: Invalidate */
  3251. void   Invalidate(Environment *ev)
  3252. {
  3253.    SOM_ResolveD(this,HIBevelButton,HIObject,Invalidate)
  3254.     (this,ev);
  3255. }
  3256.  
  3257. /* method: GetDrawingMode */
  3258. HIDrawingMode   GetDrawingMode(Environment *ev)
  3259. {
  3260.    return SOM_ResolveD(this,HIBevelButton,HIObject,GetDrawingMode)
  3261.     (this,ev);
  3262. }
  3263.  
  3264. /* method: SetDrawingMode */
  3265. void   SetDrawingMode(Environment *ev,
  3266.         HIDrawingMode drawingMode)
  3267. {
  3268.    SOM_ResolveD(this,HIBevelButton,HIObject,SetDrawingMode)
  3269.     (this,ev,drawingMode);
  3270. }
  3271.  
  3272. /* method: SetBackgroundPattern */
  3273. void   SetBackgroundPattern(Environment *ev,
  3274.         PixPatHandle backgroundPattern)
  3275. {
  3276.    SOM_ResolveD(this,HIBevelButton,HIObject,SetBackgroundPattern)
  3277.     (this,ev,backgroundPattern);
  3278. }
  3279.  
  3280. /* method: GetBackgroundPattern */
  3281. PixPatHandle   GetBackgroundPattern(Environment *ev)
  3282. {
  3283.    return SOM_ResolveD(this,HIBevelButton,HIObject,GetBackgroundPattern)
  3284.     (this,ev);
  3285. }
  3286.  
  3287. /* method: Cut */
  3288. void   Cut(Environment *ev)
  3289. {
  3290.    SOM_ResolveD(this,HIBevelButton,HIObject,Cut)
  3291.     (this,ev);
  3292. }
  3293.  
  3294. /* method: Copy */
  3295. void   Copy(Environment *ev)
  3296. {
  3297.    SOM_ResolveD(this,HIBevelButton,HIObject,Copy)
  3298.     (this,ev);
  3299. }
  3300.  
  3301. /* method: Paste */
  3302. void   Paste(Environment *ev)
  3303. {
  3304.    SOM_ResolveD(this,HIBevelButton,HIObject,Paste)
  3305.     (this,ev);
  3306. }
  3307.  
  3308. /* method: Clear */
  3309. void   Clear(Environment *ev)
  3310. {
  3311.    SOM_ResolveD(this,HIBevelButton,HIObject,Clear)
  3312.     (this,ev);
  3313. }
  3314.  
  3315. /* method: GetClipboardSupportFlags */
  3316. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  3317. {
  3318.    return SOM_ResolveD(this,HIBevelButton,HIObject,GetClipboardSupportFlags)
  3319.     (this,ev);
  3320. }
  3321.  
  3322. /* method: AddStateChangeCallback */
  3323. OSStatus   AddStateChangeCallback(Environment *ev,
  3324.         HIStateChangeCallbackProcPtr changedStateCallback,
  3325.         HIStateChangeCallbackRef* newCallbackRef)
  3326. {
  3327.    return SOM_ResolveD(this,HIBevelButton,HIObject,AddStateChangeCallback)
  3328.     (this,ev,changedStateCallback,newCallbackRef);
  3329. }
  3330.  
  3331. /* method: RemoveStateChangeCallback */
  3332. OSStatus   RemoveStateChangeCallback(Environment *ev,
  3333.         HIStateChangeCallbackRef callbackRefToRemove)
  3334. {
  3335.    return SOM_ResolveD(this,HIBevelButton,HIObject,RemoveStateChangeCallback)
  3336.     (this,ev,callbackRefToRemove);
  3337. }
  3338.  
  3339. /* noself procedure: GetHIObjectFromRefLabel */
  3340. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  3341.         RefLabel* identifier,
  3342.         ItemCount requestedObjects,
  3343.         ItemCount* totalObjects,
  3344.         HIObject** theObjects)
  3345. {
  3346. return ((somTD_HIBevelButton_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  3347.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  3348. }
  3349.  
  3350. /* noself procedure: GetNewHIObject */
  3351. static OSStatus   GetNewHIObject(Environment *ev,
  3352.         AESubDesc* objectInitializer,
  3353.         HIObject** newObject)
  3354. {
  3355. return ((somTD_HIBevelButton_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  3356.     (ev,objectInitializer,newObject);
  3357. }
  3358.  
  3359. /* noself procedure: GetNewHIObjectFromResource */
  3360. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  3361.         ResID objectInitializerResourceID,
  3362.         HIObject** newObject)
  3363. {
  3364. return ((somTD_HIBevelButton_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  3365.     (ev,objectInitializerResourceID,newObject);
  3366. }
  3367.  
  3368. /* method: DrawContent */
  3369. void   DrawContent(Environment *ev,
  3370.         CGrafPtr whichPort,
  3371.         RgnHandle drawRgn)
  3372. {
  3373.    SOM_ResolveD(this,HIBevelButton,HIObject,DrawContent)
  3374.     (this,ev,whichPort,drawRgn);
  3375. }
  3376.  
  3377. /* method: EraseContent */
  3378. void   EraseContent(Environment *ev,
  3379.         CGrafPtr whichPort,
  3380.         RgnHandle regionToErase)
  3381. {
  3382.    SOM_ResolveD(this,HIBevelButton,HIObject,EraseContent)
  3383.     (this,ev,whichPort,regionToErase);
  3384. }
  3385.  
  3386. /* method: TranslatePoint */
  3387. void   TranslatePoint(Environment *ev,
  3388.         HICoordinateSystem translateFrom,
  3389.         HICoordinateSystem translateTo,
  3390.         Point* sourcePoint,
  3391.         Point* translatedPoint)
  3392. {
  3393.    SOM_ResolveD(this,HIBevelButton,HIObject,TranslatePoint)
  3394.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  3395. }
  3396.  
  3397. /* method: TranslateRect */
  3398. void   TranslateRect(Environment *ev,
  3399.         HICoordinateSystem translateFrom,
  3400.         HICoordinateSystem translateTo,
  3401.         Rect* sourceRect,
  3402.         Rect* translatedRect)
  3403. {
  3404.    SOM_ResolveD(this,HIBevelButton,HIObject,TranslateRect)
  3405.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  3406. }
  3407.  
  3408. /* method: StateChanged */
  3409. void   StateChanged(Environment *ev,
  3410.         HIStateChangeCodeCreator selectorCreator,
  3411.         HIStateChangeCode changedCode)
  3412. {
  3413.    SOM_ResolveD(this,HIBevelButton,HIObject,StateChanged)
  3414.     (this,ev,selectorCreator,changedCode);
  3415. }
  3416.  
  3417. /* method: SetClipboardSupportFlags */
  3418. void   SetClipboardSupportFlags(Environment *ev,
  3419.         HIClipboardSupportFlags flags)
  3420. {
  3421.    SOM_ResolveD(this,HIBevelButton,HIObject,SetClipboardSupportFlags)
  3422.     (this,ev,flags);
  3423. }
  3424.  
  3425. /* method: Verify */
  3426. OSStatus   Verify(Environment *ev)
  3427. {
  3428.    return SOM_ResolveD(this,HIBevelButton,HIObject,Verify)
  3429.     (this,ev);
  3430. }
  3431.  
  3432. /* method: somInit */
  3433. void   somInit()
  3434. {
  3435.    SOM_ResolveD(this,HIBevelButton,SOMObject,somInit)
  3436.     (this);
  3437. }
  3438.  
  3439. /* method: somUninit */
  3440. void   somUninit()
  3441. {
  3442.    SOM_ResolveD(this,HIBevelButton,SOMObject,somUninit)
  3443.     (this);
  3444. }
  3445.  
  3446. /* method: somDuplicateReference */
  3447. SOMObject*   somDuplicateReference()
  3448. {
  3449.    return SOM_ResolveD(this,HIBevelButton,SOMObject,somDuplicateReference)
  3450.     (this);
  3451. }
  3452.  
  3453. /* method: somCompareReference */
  3454. boolean   somCompareReference(SOMObject* anObject)
  3455. {
  3456.    return SOM_ResolveD(this,HIBevelButton,SOMObject,somCompareReference)
  3457.     (this,anObject);
  3458. }
  3459.  
  3460. /* method: somRelease */
  3461. SOMObject*   somRelease()
  3462. {
  3463.    return SOM_ResolveD(this,HIBevelButton,SOMObject,somRelease)
  3464.     (this);
  3465. }
  3466.  
  3467. /* method: somFree */
  3468. void   somFree()
  3469. {
  3470.    SOM_ResolveD(this,HIBevelButton,SOMObject,somFree)
  3471.     (this);
  3472. }
  3473.  
  3474. /* method: somCanDelete */
  3475. boolean   somCanDelete()
  3476. {
  3477.    return SOM_ResolveD(this,HIBevelButton,SOMObject,somCanDelete)
  3478.     (this);
  3479. }
  3480.  
  3481. /* method: somGetClass */
  3482. SOMClass*   somGetClass()
  3483. {
  3484.    return SOM_ResolveD(this,HIBevelButton,SOMObject,somGetClass)
  3485.     (this);
  3486. }
  3487.  
  3488. /* method: somGetClassName */
  3489. corbastring   somGetClassName()
  3490. {
  3491.    return SOM_ResolveD(this,HIBevelButton,SOMObject,somGetClassName)
  3492.     (this);
  3493. }
  3494.  
  3495. /* method: somGetSize */
  3496. long   somGetSize()
  3497. {
  3498.    return SOM_ResolveD(this,HIBevelButton,SOMObject,somGetSize)
  3499.     (this);
  3500. }
  3501.  
  3502. /* method: somIsA */
  3503. boolean   somIsA(SOMClass* aClassObj)
  3504. {
  3505.    return SOM_ResolveD(this,HIBevelButton,SOMObject,somIsA)
  3506.     (this,aClassObj);
  3507. }
  3508.  
  3509. /* method: somRespondsTo */
  3510. boolean   somRespondsTo(somId mId)
  3511. {
  3512.    return SOM_ResolveD(this,HIBevelButton,SOMObject,somRespondsTo)
  3513.     (this,mId);
  3514. }
  3515.  
  3516. /* method: somIsInstanceOf */
  3517. boolean   somIsInstanceOf(SOMClass* aClassObj)
  3518. {
  3519.    return SOM_ResolveD(this,HIBevelButton,SOMObject,somIsInstanceOf)
  3520.     (this,aClassObj);
  3521. }
  3522.  
  3523. /* va_list method: somDispatch */
  3524. /* the va_list invocation form */
  3525. boolean   HIBevelButton_somDispatch(somToken* retValue,
  3526.         somId methodId,
  3527.         va_list ap)
  3528. {
  3529.    return SOM_ResolveD(this,HIBevelButton,SOMObject,somDispatch)
  3530.     (this,retValue,methodId,ap);
  3531. }
  3532.  
  3533. /* the varargs invocation form */
  3534. boolean   somDispatch(somToken* retValue,
  3535.         somId methodId,
  3536.         ...)
  3537. {
  3538.    va_list ap;
  3539.    va_start(ap, methodId);
  3540.       boolean __somResult = 
  3541.       (boolean) SOM_ResolveD(this,HIBevelButton,SOMObject,somDispatch)
  3542.     (this,retValue,methodId,ap);
  3543.    va_end(ap);
  3544.    return __somResult;
  3545. }
  3546.  
  3547. /* va_list method: somClassDispatch */
  3548. /* the va_list invocation form */
  3549. boolean   HIBevelButton_somClassDispatch(SOMClass* clsObj,
  3550.         somToken* retValue,
  3551.         somId methodId,
  3552.         va_list ap)
  3553. {
  3554.    return SOM_ResolveD(this,HIBevelButton,SOMObject,somClassDispatch)
  3555.     (this,clsObj,retValue,methodId,ap);
  3556. }
  3557.  
  3558. /* the varargs invocation form */
  3559. boolean   somClassDispatch(SOMClass* clsObj,
  3560.         somToken* retValue,
  3561.         somId methodId,
  3562.         ...)
  3563. {
  3564.    va_list ap;
  3565.    va_start(ap, methodId);
  3566.       boolean __somResult = 
  3567.       (boolean) SOM_ResolveD(this,HIBevelButton,SOMObject,somClassDispatch)
  3568.     (this,clsObj,retValue,methodId,ap);
  3569.    va_end(ap);
  3570.    return __somResult;
  3571. }
  3572.  
  3573. /* method: somCastObj */
  3574. boolean   somCastObj(SOMClass* cls)
  3575. {
  3576.    return SOM_ResolveD(this,HIBevelButton,SOMObject,somCastObj)
  3577.     (this,cls);
  3578. }
  3579.  
  3580. /* method: somResetObj */
  3581. boolean   somResetObj()
  3582. {
  3583.    return SOM_ResolveD(this,HIBevelButton,SOMObject,somResetObj)
  3584.     (this);
  3585. }
  3586.  
  3587. /* method: somPrintSelf */
  3588. SOMObject*   somPrintSelf()
  3589. {
  3590.    return SOM_ResolveD(this,HIBevelButton,SOMObject,somPrintSelf)
  3591.     (this);
  3592. }
  3593.  
  3594. /* method: somDumpSelf */
  3595. void   somDumpSelf(long level)
  3596. {
  3597.    SOM_ResolveD(this,HIBevelButton,SOMObject,somDumpSelf)
  3598.     (this,level);
  3599. }
  3600.  
  3601. /* method: somDumpSelfInt */
  3602. void   somDumpSelfInt(long level)
  3603. {
  3604.    SOM_ResolveD(this,HIBevelButton,SOMObject,somDumpSelfInt)
  3605.     (this,level);
  3606. }
  3607.  
  3608. };   /* HIBevelButton */
  3609.  
  3610.  
  3611.  
  3612. #endif       /* SOM_HIBevelButton_xh */
  3613.  
  3614. #ifndef SOM_HICheckBox_xh
  3615. #define SOM_HICheckBox_xh
  3616.  
  3617. class HICheckBox;
  3618.  
  3619. #define HICheckBox_MajorVersion 0
  3620. #define HICheckBox_MinorVersion 0
  3621.  
  3622. /* C++ SOM defs */
  3623. #include <somcls.xh>
  3624. #include <somcm.xh>
  3625.  
  3626. /* C++ parent defs */
  3627. #ifndef SOM_HIControl_xh
  3628. #include <HIControls.xh>
  3629. #endif
  3630.  
  3631. #ifndef HICheckBox_API
  3632. #define HICheckBox_API
  3633. /*
  3634.  * -- The Class API
  3635.  */
  3636.  
  3637. /*
  3638.  * Start of user-defined types:
  3639.  */
  3640.  
  3641. /*
  3642.  * End of user-defined types.
  3643.  */
  3644.  
  3645. #ifdef OLDIBMSOMAPISUPPORT
  3646. #define HICheckBoxCClassData HICheckBoxClassData
  3647. #define HICheckBoxNewClass(major,minor) somNewVersionedClassReference(HICheckBox,major,minor)
  3648. #endif
  3649.  
  3650. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  3651. #define HICheckBoxMetaClass SOMClass
  3652.  
  3653. #if PRAGMA_ALIGN_SUPPORTED
  3654. #  pragma options align=power
  3655. #endif
  3656.  
  3657. /* The API to the HICheckBox class object, and the methods it introduces. */
  3658. SOMEXTERN struct HICheckBoxClassDataStructure {
  3659. #ifdef OLDIBMSOMAPISUPPORT
  3660.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  3661. #else
  3662.     long zero;
  3663. #endif
  3664.     somStaticClassInfo *sci;
  3665.     somDToken        instanceDataToken;
  3666.     long reserved [3];
  3667.     somMToken InitCheckBox;
  3668. } SOMDLINK HICheckBoxClassData;
  3669.  
  3670. #if PRAGMA_ALIGN_SUPPORTED
  3671. #  pragma options align=reset
  3672. #endif
  3673.  
  3674. #if !defined(HICheckBox_Class_Source) && !defined(SOM_Module_hicontrols_Source)
  3675. #if PRAGMA_IMPORT_SUPPORTED
  3676. #pragma import list HICheckBoxClassData
  3677. #endif
  3678. #endif
  3679.  
  3680.  
  3681. /*
  3682.  * -- Typedefs for HICheckBox Method Procedures
  3683.  */
  3684. SOMEXTERN {
  3685. typedef OSStatus   (* SOMLINK somTD_HICheckBox_InitCheckBox)(HICheckBox *somSelf, Environment *ev,
  3686.         RefLabel* identifier,
  3687.         HIWindow* window,
  3688.         Rect* bounds);
  3689.  
  3690. /*
  3691.  * -- Typedefs for Inherited Methods
  3692.  */
  3693. typedef OSStatus   (* SOMLINK somTD_HICheckBox_InitControl)(HICheckBox *somSelf, Environment *ev,
  3694.         RefLabel* identifier,
  3695.         HIWindow* window,
  3696.         Rect* bounds,
  3697.         SInt32 value,
  3698.         SInt32 minimumValue,
  3699.         SInt32 maximumValue);
  3700. typedef void   (* SOMLINK somTD_HICheckBox_SetValue)(HICheckBox *somSelf, Environment *ev,
  3701.         SInt32 newValue);
  3702. typedef SInt32   (* SOMLINK somTD_HICheckBox_GetValue)(HICheckBox *somSelf, Environment *ev);
  3703. typedef void   (* SOMLINK somTD_HICheckBox_SetMinimum)(HICheckBox *somSelf, Environment *ev,
  3704.         SInt32 newMinimum);
  3705. typedef SInt32   (* SOMLINK somTD_HICheckBox_GetMinimum)(HICheckBox *somSelf, Environment *ev);
  3706. typedef void   (* SOMLINK somTD_HICheckBox_SetMaximum)(HICheckBox *somSelf, Environment *ev,
  3707.         SInt32 newMaximum);
  3708. typedef SInt32   (* SOMLINK somTD_HICheckBox_GetMaximum)(HICheckBox *somSelf, Environment *ev);
  3709. typedef void   (* SOMLINK somTD_HICheckBox_SimulateSelection)(HICheckBox *somSelf, Environment *ev);
  3710. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HICheckBox_GetEmbeddingParent)(HICheckBox *somSelf, Environment *ev);
  3711. typedef OSStatus   (* SOMLINK somTD_HICheckBox_InitPanel)(HICheckBox *somSelf, Environment *ev,
  3712.         RefLabel* identifier,
  3713.         HIWindow* window,
  3714.         Rect* bounds);
  3715. typedef OSStatus   (* SOMLINK somTD_HICheckBox_RegisterInterestInAppleEvent)(HICheckBox *somSelf, Environment *ev,
  3716.         AEHandlerTableRef table,
  3717.         AEEventClass eventClass,
  3718.         AEEventID eventID,
  3719.         HIEventRoutingType eventRouting);
  3720. typedef boolean   (* SOMLINK somTD_HICheckBox_HasValidContent)(HICheckBox *somSelf, Environment *ev);
  3721. typedef OSStatus   (* SOMLINK somTD_HICheckBox_GetDeepCollectionItemData)(HICheckBox *somSelf, Environment *ev,
  3722.         CollectionTag tag,
  3723.         SInt32 id,
  3724.         ByteCount sizeAllowed,
  3725.         ByteCount* sizeReturned,
  3726.         void* itemData);
  3727. typedef HIWindow*   (* SOMLINK somTD_HICheckBox_GetWindow)(HICheckBox *somSelf, Environment *ev);
  3728. typedef CGrafPtr   (* SOMLINK somTD_HICheckBox_GetPort)(HICheckBox *somSelf, Environment *ev);
  3729. typedef void   (* SOMLINK somTD_HICheckBox_GetRefLabel)(HICheckBox *somSelf, Environment *ev,
  3730.         RefLabel* identifier);
  3731. typedef Collection   (* SOMLINK somTD_HICheckBox_GetCollection)(HICheckBox *somSelf, Environment *ev);
  3732. typedef OSStatus   (* SOMLINK somTD_HICheckBox_Init)(HICheckBox *somSelf, Environment *ev,
  3733.         RefLabel* identifier,
  3734.         Rect* boundingRect);
  3735. typedef void   (* SOMLINK somTD_HICheckBox_Terminate)(HICheckBox *somSelf, Environment *ev);
  3736. typedef HIObject*   (* SOMLINK somTD_HICheckBox_Clone)(HICheckBox *somSelf, Environment *ev);
  3737. typedef void   (* SOMLINK somTD_HICheckBox_Release)(HICheckBox *somSelf, Environment *ev);
  3738. typedef ItemCount   (* SOMLINK somTD_HICheckBox_GetOwnerCount)(HICheckBox *somSelf, Environment *ev);
  3739. typedef OSStatus   (* SOMLINK somTD_HICheckBox_InitFromAERecord)(HICheckBox *somSelf, Environment *ev,
  3740.         AESubDesc* baseInitializerData,
  3741.         AESubDesc* initializerDataForClass,
  3742.         HIAERecordDataFormat dataFormat);
  3743. typedef OSStatus   (* SOMLINK somTD_HICheckBox_WriteToAERecord)(HICheckBox *somSelf, Environment *ev,
  3744.         AERecord* dataForSubclass,
  3745.         AERecord* objectData,
  3746.         HIAERecordDataFormat dataFormat);
  3747. typedef void   (* SOMLINK somTD_HICheckBox_CalculateOptimalSize)(HICheckBox *somSelf, Environment *ev,
  3748.         SInt16* optimalWidth,
  3749.         SInt16* optimalHeight);
  3750. typedef void   (* SOMLINK somTD_HICheckBox_GetBoundingRect)(HICheckBox *somSelf, Environment *ev,
  3751.         HICoordinateSystem coordinate,
  3752.         Rect* boundingRect);
  3753. typedef void   (* SOMLINK somTD_HICheckBox_SetBoundingRect)(HICheckBox *somSelf, Environment *ev,
  3754.         HICoordinateSystem coordinate,
  3755.         Rect* newBoundingRect);
  3756. typedef void   (* SOMLINK somTD_HICheckBox_SetPosition)(HICheckBox *somSelf, Environment *ev,
  3757.         HICoordinateSystem coordinate,
  3758.         Point* newPosition);
  3759. typedef void   (* SOMLINK somTD_HICheckBox_SetSize)(HICheckBox *somSelf, Environment *ev,
  3760.         SInt16 width,
  3761.         SInt16 height);
  3762. typedef void   (* SOMLINK somTD_HICheckBox_GetUpdateRect)(HICheckBox *somSelf, Environment *ev,
  3763.         HICoordinateSystem coordinate,
  3764.         Rect* updateRect);
  3765. typedef void   (* SOMLINK somTD_HICheckBox_Enable)(HICheckBox *somSelf, Environment *ev);
  3766. typedef void   (* SOMLINK somTD_HICheckBox_Disable)(HICheckBox *somSelf, Environment *ev);
  3767. typedef boolean   (* SOMLINK somTD_HICheckBox_IsEnabled)(HICheckBox *somSelf, Environment *ev);
  3768. typedef void   (* SOMLINK somTD_HICheckBox_Show)(HICheckBox *somSelf, Environment *ev);
  3769. typedef void   (* SOMLINK somTD_HICheckBox_Hide)(HICheckBox *somSelf, Environment *ev);
  3770. typedef boolean   (* SOMLINK somTD_HICheckBox_IsVisible)(HICheckBox *somSelf, Environment *ev);
  3771. typedef OSStatus   (* SOMLINK somTD_HICheckBox_HandleAppleEvent)(HICheckBox *somSelf, Environment *ev,
  3772.         AEEventClass eventClass,
  3773.         AEEventID eventID,
  3774.         AppleEvent* theEvent,
  3775.         AppleEvent* reply,
  3776.         AEHandlerTableRef handlerTableRef);
  3777. typedef OSStatus   (* SOMLINK somTD_HICheckBox_HandleActivate)(HICheckBox *somSelf, Environment *ev,
  3778.         AppleEvent* theEvent,
  3779.         AppleEvent* reply,
  3780.         AEHandlerTableRef handlerTableRef);
  3781. typedef OSStatus   (* SOMLINK somTD_HICheckBox_HandleDeactivate)(HICheckBox *somSelf, Environment *ev,
  3782.         AppleEvent* theEvent,
  3783.         AppleEvent* reply,
  3784.         AEHandlerTableRef handlerTableRef);
  3785. typedef OSStatus   (* SOMLINK somTD_HICheckBox_HandleNavigation)(HICheckBox *somSelf, Environment *ev,
  3786.         SInt8 key,
  3787.         SInt8 keyCode,
  3788.         EventModifiers modifiers,
  3789.         AppleEvent* theEvent,
  3790.         AppleEvent* reply,
  3791.         AEHandlerTableRef handlerTableRef);
  3792. typedef OSStatus   (* SOMLINK somTD_HICheckBox_HandleMouseDownInContent)(HICheckBox *somSelf, Environment *ev,
  3793.         Point* portLocalWhere,
  3794.         EventModifiers modifiers,
  3795.         AppleEvent* theEvent,
  3796.         AppleEvent* reply,
  3797.         AEHandlerTableRef handlerTableRef);
  3798. typedef OSStatus   (* SOMLINK somTD_HICheckBox_HandleMouseMovedInContent)(HICheckBox *somSelf, Environment *ev,
  3799.         Point* portLocalWhere,
  3800.         EventModifiers modifiers,
  3801.         AppleEvent* theEvent,
  3802.         AppleEvent* reply,
  3803.         AEHandlerTableRef handlerTableRef);
  3804. typedef OSStatus   (* SOMLINK somTD_HICheckBox_HandleMouseStoppedMovingInContent)(HICheckBox *somSelf, Environment *ev,
  3805.         Point* portLocalWhere,
  3806.         EventModifiers modifiers,
  3807.         AppleEvent* theEvent,
  3808.         AppleEvent* reply,
  3809.         AEHandlerTableRef handlerTableRef);
  3810. typedef OSStatus   (* SOMLINK somTD_HICheckBox_HandleMouseUpInContent)(HICheckBox *somSelf, Environment *ev,
  3811.         Point* portLocalWhere,
  3812.         EventModifiers modifiers,
  3813.         AppleEvent* theEvent,
  3814.         AppleEvent* reply,
  3815.         AEHandlerTableRef handlerTableRef);
  3816. typedef void   (* SOMLINK somTD_HICheckBox_TakeUserInputFocus)(HICheckBox *somSelf, Environment *ev);
  3817. typedef void   (* SOMLINK somTD_HICheckBox_ReleaseUserInputFocus)(HICheckBox *somSelf, Environment *ev);
  3818. typedef boolean   (* SOMLINK somTD_HICheckBox_HasUserInputFocus)(HICheckBox *somSelf, Environment *ev);
  3819. typedef boolean   (* SOMLINK somTD_HICheckBox_CanReleaseUserInputFocus)(HICheckBox *somSelf, Environment *ev);
  3820. typedef void   (* SOMLINK somTD_HICheckBox_SetUserInputFocusFlags)(HICheckBox *somSelf, Environment *ev,
  3821.         HIUserInputFocusFlags flags);
  3822. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HICheckBox_GetUserInputFocusFlags)(HICheckBox *somSelf, Environment *ev);
  3823. typedef OSStatus   (* SOMLINK somTD_HICheckBox_SetTitle)(HICheckBox *somSelf, Environment *ev,
  3824.         ConstHIImageRef title,
  3825.         HIAdoptionFlags disposalAdoptionFlags);
  3826. typedef OSStatus   (* SOMLINK somTD_HICheckBox_GetTitle)(HICheckBox *somSelf, Environment *ev,
  3827.         HIImageRef* title);
  3828. typedef void   (* SOMLINK somTD_HICheckBox_Draw)(HICheckBox *somSelf, Environment *ev,
  3829.         CGrafPtr whichPort,
  3830.         RgnHandle drawRgn);
  3831. typedef void   (* SOMLINK somTD_HICheckBox_Erase)(HICheckBox *somSelf, Environment *ev,
  3832.         CGrafPtr whichPort,
  3833.         RgnHandle eraseRgn);
  3834. typedef void   (* SOMLINK somTD_HICheckBox_Invalidate)(HICheckBox *somSelf, Environment *ev);
  3835. typedef HIDrawingMode   (* SOMLINK somTD_HICheckBox_GetDrawingMode)(HICheckBox *somSelf, Environment *ev);
  3836. typedef void   (* SOMLINK somTD_HICheckBox_SetDrawingMode)(HICheckBox *somSelf, Environment *ev,
  3837.         HIDrawingMode drawingMode);
  3838. typedef void   (* SOMLINK somTD_HICheckBox_SetBackgroundPattern)(HICheckBox *somSelf, Environment *ev,
  3839.         PixPatHandle backgroundPattern);
  3840. typedef PixPatHandle   (* SOMLINK somTD_HICheckBox_GetBackgroundPattern)(HICheckBox *somSelf, Environment *ev);
  3841. typedef void   (* SOMLINK somTD_HICheckBox_Cut)(HICheckBox *somSelf, Environment *ev);
  3842. typedef void   (* SOMLINK somTD_HICheckBox_Copy)(HICheckBox *somSelf, Environment *ev);
  3843. typedef void   (* SOMLINK somTD_HICheckBox_Paste)(HICheckBox *somSelf, Environment *ev);
  3844. typedef void   (* SOMLINK somTD_HICheckBox_Clear)(HICheckBox *somSelf, Environment *ev);
  3845. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HICheckBox_GetClipboardSupportFlags)(HICheckBox *somSelf, Environment *ev);
  3846. typedef OSStatus   (* SOMLINK somTD_HICheckBox_AddStateChangeCallback)(HICheckBox *somSelf, Environment *ev,
  3847.         HIStateChangeCallbackProcPtr changedStateCallback,
  3848.         HIStateChangeCallbackRef* newCallbackRef);
  3849. typedef OSStatus   (* SOMLINK somTD_HICheckBox_RemoveStateChangeCallback)(HICheckBox *somSelf, Environment *ev,
  3850.         HIStateChangeCallbackRef callbackRefToRemove);
  3851. typedef OSStatus   (* SOMLINK somTD_HICheckBox_GetHIObjectFromRefLabel)(Environment *ev,
  3852.         RefLabel* identifier,
  3853.         ItemCount requestedObjects,
  3854.         ItemCount* totalObjects,
  3855.         HIObject** theObjects);
  3856. typedef OSStatus   (* SOMLINK somTD_HICheckBox_GetNewHIObject)(Environment *ev,
  3857.         AESubDesc* objectInitializer,
  3858.         HIObject** newObject);
  3859. typedef OSStatus   (* SOMLINK somTD_HICheckBox_GetNewHIObjectFromResource)(Environment *ev,
  3860.         ResID objectInitializerResourceID,
  3861.         HIObject** newObject);
  3862. typedef void   (* SOMLINK somTD_HICheckBox_DrawContent)(HICheckBox *somSelf, Environment *ev,
  3863.         CGrafPtr whichPort,
  3864.         RgnHandle drawRgn);
  3865. typedef void   (* SOMLINK somTD_HICheckBox_EraseContent)(HICheckBox *somSelf, Environment *ev,
  3866.         CGrafPtr whichPort,
  3867.         RgnHandle regionToErase);
  3868. typedef void   (* SOMLINK somTD_HICheckBox_TranslatePoint)(HICheckBox *somSelf, Environment *ev,
  3869.         HICoordinateSystem translateFrom,
  3870.         HICoordinateSystem translateTo,
  3871.         Point* sourcePoint,
  3872.         Point* translatedPoint);
  3873. typedef void   (* SOMLINK somTD_HICheckBox_TranslateRect)(HICheckBox *somSelf, Environment *ev,
  3874.         HICoordinateSystem translateFrom,
  3875.         HICoordinateSystem translateTo,
  3876.         Rect* sourceRect,
  3877.         Rect* translatedRect);
  3878. typedef void   (* SOMLINK somTD_HICheckBox_StateChanged)(HICheckBox *somSelf, Environment *ev,
  3879.         HIStateChangeCodeCreator selectorCreator,
  3880.         HIStateChangeCode changedCode);
  3881. typedef void   (* SOMLINK somTD_HICheckBox_SetClipboardSupportFlags)(HICheckBox *somSelf, Environment *ev,
  3882.         HIClipboardSupportFlags flags);
  3883. typedef OSStatus   (* SOMLINK somTD_HICheckBox_Verify)(HICheckBox *somSelf, Environment *ev);
  3884. typedef void   (* SOMLINK somTD_HICheckBox_somInit)(HICheckBox *somSelf);
  3885. typedef void   (* SOMLINK somTD_HICheckBox_somUninit)(HICheckBox *somSelf);
  3886. typedef SOMObject*   (* SOMLINK somTD_HICheckBox_somDuplicateReference)(HICheckBox *somSelf);
  3887. typedef boolean   (* SOMLINK somTD_HICheckBox_somCompareReference)(HICheckBox *somSelf,
  3888.         SOMObject* anObject);
  3889. typedef SOMObject*   (* SOMLINK somTD_HICheckBox_somRelease)(HICheckBox *somSelf);
  3890. typedef void   (* SOMLINK somTD_HICheckBox_somFree)(HICheckBox *somSelf);
  3891. typedef boolean   (* SOMLINK somTD_HICheckBox_somCanDelete)(HICheckBox *somSelf);
  3892. typedef SOMClass*   (* SOMLINK somTD_HICheckBox_somGetClass)(HICheckBox *somSelf);
  3893. typedef corbastring   (* SOMLINK somTD_HICheckBox_somGetClassName)(HICheckBox *somSelf);
  3894. typedef long   (* SOMLINK somTD_HICheckBox_somGetSize)(HICheckBox *somSelf);
  3895. typedef boolean   (* SOMLINK somTD_HICheckBox_somIsA)(HICheckBox *somSelf,
  3896.         SOMClass* aClassObj);
  3897. typedef boolean   (* SOMLINK somTD_HICheckBox_somRespondsTo)(HICheckBox *somSelf,
  3898.         somId mId);
  3899. typedef boolean   (* SOMLINK somTD_HICheckBox_somIsInstanceOf)(HICheckBox *somSelf,
  3900.         SOMClass* aClassObj);
  3901. typedef boolean   (* SOMLINK somTD_HICheckBox_somDispatch)(HICheckBox *somSelf,
  3902.         somToken* retValue,
  3903.         somId methodId,
  3904.         va_list ap);
  3905. typedef boolean   (* SOMLINK somTD_HICheckBox_somClassDispatch)(HICheckBox *somSelf,
  3906.         SOMClass* clsObj,
  3907.         somToken* retValue,
  3908.         somId methodId,
  3909.         va_list ap);
  3910. typedef boolean   (* SOMLINK somTD_HICheckBox_somCastObj)(HICheckBox *somSelf,
  3911.         SOMClass* cls);
  3912. typedef boolean   (* SOMLINK somTD_HICheckBox_somResetObj)(HICheckBox *somSelf);
  3913. typedef SOMObject*   (* SOMLINK somTD_HICheckBox_somPrintSelf)(HICheckBox *somSelf);
  3914. typedef void   (* SOMLINK somTD_HICheckBox_somDumpSelf)(HICheckBox *somSelf,
  3915.         long level);
  3916. typedef void   (* SOMLINK somTD_HICheckBox_somDumpSelfInt)(HICheckBox *somSelf,
  3917.         long level);
  3918. }
  3919.  
  3920. #endif /* HICheckBox_API */
  3921.  
  3922.  
  3923. /*
  3924.  * -- This emitter treats Method Tokens as Thunks by default.
  3925.  * -- Use the sc modifier "nothunks" to change this default
  3926.  */
  3927. #undef somresolve_
  3928. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  3929.  
  3930. /*
  3931.  * -- The C++ Wrapper Class for HICheckBox
  3932.  */
  3933. class HICheckBox : public HIControl
  3934. {
  3935. public:
  3936.  
  3937. // HICheckBox::new registers use of the class object, and then uses somNew
  3938. // to allocate memory and load the object method table pointer. 
  3939. void *operator new(size_t size)
  3940. {
  3941.     SOM_IgnoreWarning(size);
  3942.     // Allocate memory using the default allocator for HICheckBox, and
  3943.     // clear mem & set method table pointer, call basic initialization
  3944.     return (void*) somNewObject(HICheckBox);
  3945. }
  3946.  
  3947. // HICheckBox::delete uses the default deallocator for the object's class.
  3948. void operator delete(void * obj)
  3949. {
  3950.     if (obj) {
  3951.         SOM_Resolve(obj,SOMObject,somFree)
  3952.            ( (SOMObject*) obj );
  3953.     }
  3954. }
  3955.  
  3956. /* method: InitCheckBox */
  3957. OSStatus   InitCheckBox(Environment *ev,
  3958.         RefLabel* identifier,
  3959.         HIWindow* window,
  3960.         Rect* bounds)
  3961. {
  3962.    return SOM_ResolveD(this,HICheckBox,HICheckBox,InitCheckBox)
  3963.     (this,ev,identifier,window,bounds);
  3964. }
  3965.  
  3966.  
  3967. /*
  3968.  * -- Inherited methods
  3969.  */
  3970. /* method: InitControl */
  3971. OSStatus   InitControl(Environment *ev,
  3972.         RefLabel* identifier,
  3973.         HIWindow* window,
  3974.         Rect* bounds,
  3975.         SInt32 value,
  3976.         SInt32 minimumValue,
  3977.         SInt32 maximumValue)
  3978. {
  3979.    return SOM_ResolveD(this,HICheckBox,HIControl,InitControl)
  3980.     (this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
  3981. }
  3982.  
  3983. /* method: SetValue */
  3984. void   SetValue(Environment *ev,
  3985.         SInt32 newValue)
  3986. {
  3987.    SOM_ResolveD(this,HICheckBox,HIControl,SetValue)
  3988.     (this,ev,newValue);
  3989. }
  3990.  
  3991. /* method: GetValue */
  3992. SInt32   GetValue(Environment *ev)
  3993. {
  3994.    return SOM_ResolveD(this,HICheckBox,HIControl,GetValue)
  3995.     (this,ev);
  3996. }
  3997.  
  3998. /* method: SetMinimum */
  3999. void   SetMinimum(Environment *ev,
  4000.         SInt32 newMinimum)
  4001. {
  4002.    SOM_ResolveD(this,HICheckBox,HIControl,SetMinimum)
  4003.     (this,ev,newMinimum);
  4004. }
  4005.  
  4006. /* method: GetMinimum */
  4007. SInt32   GetMinimum(Environment *ev)
  4008. {
  4009.    return SOM_ResolveD(this,HICheckBox,HIControl,GetMinimum)
  4010.     (this,ev);
  4011. }
  4012.  
  4013. /* method: SetMaximum */
  4014. void   SetMaximum(Environment *ev,
  4015.         SInt32 newMaximum)
  4016. {
  4017.    SOM_ResolveD(this,HICheckBox,HIControl,SetMaximum)
  4018.     (this,ev,newMaximum);
  4019. }
  4020.  
  4021. /* method: GetMaximum */
  4022. SInt32   GetMaximum(Environment *ev)
  4023. {
  4024.    return SOM_ResolveD(this,HICheckBox,HIControl,GetMaximum)
  4025.     (this,ev);
  4026. }
  4027.  
  4028. /* method: SimulateSelection */
  4029. void   SimulateSelection(Environment *ev)
  4030. {
  4031.    SOM_ResolveD(this,HICheckBox,HIControl,SimulateSelection)
  4032.     (this,ev);
  4033. }
  4034.  
  4035. /* method: GetEmbeddingParent */
  4036. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  4037. {
  4038.    return SOM_ResolveD(this,HICheckBox,HIPanel,GetEmbeddingParent)
  4039.     (this,ev);
  4040. }
  4041.  
  4042. /* method: InitPanel */
  4043. OSStatus   InitPanel(Environment *ev,
  4044.         RefLabel* identifier,
  4045.         HIWindow* window,
  4046.         Rect* bounds)
  4047. {
  4048.    return SOM_ResolveD(this,HICheckBox,HIPanel,InitPanel)
  4049.     (this,ev,identifier,window,bounds);
  4050. }
  4051.  
  4052. /* method: RegisterInterestInAppleEvent */
  4053. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  4054.         AEHandlerTableRef table,
  4055.         AEEventClass eventClass,
  4056.         AEEventID eventID,
  4057.         HIEventRoutingType eventRouting)
  4058. {
  4059.    return SOM_ResolveD(this,HICheckBox,HIPanel,RegisterInterestInAppleEvent)
  4060.     (this,ev,table,eventClass,eventID,eventRouting);
  4061. }
  4062.  
  4063. /* method: HasValidContent */
  4064. boolean   HasValidContent(Environment *ev)
  4065. {
  4066.    return SOM_ResolveD(this,HICheckBox,HIPanel,HasValidContent)
  4067.     (this,ev);
  4068. }
  4069.  
  4070. /* method: GetDeepCollectionItemData */
  4071. OSStatus   GetDeepCollectionItemData(Environment *ev,
  4072.         CollectionTag tag,
  4073.         SInt32 id,
  4074.         ByteCount sizeAllowed,
  4075.         ByteCount* sizeReturned,
  4076.         void* itemData)
  4077. {
  4078.    return SOM_ResolveD(this,HICheckBox,HIPanel,GetDeepCollectionItemData)
  4079.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  4080. }
  4081.  
  4082. /* method: GetWindow */
  4083. HIWindow*   GetWindow(Environment *ev)
  4084. {
  4085.    return SOM_ResolveD(this,HICheckBox,HIObject,GetWindow)
  4086.     (this,ev);
  4087. }
  4088.  
  4089. /* method: GetPort */
  4090. CGrafPtr   GetPort(Environment *ev)
  4091. {
  4092.    return SOM_ResolveD(this,HICheckBox,HIObject,GetPort)
  4093.     (this,ev);
  4094. }
  4095.  
  4096. /* method: GetRefLabel */
  4097. void   GetRefLabel(Environment *ev,
  4098.         RefLabel* identifier)
  4099. {
  4100.    SOM_ResolveD(this,HICheckBox,HIObject,GetRefLabel)
  4101.     (this,ev,identifier);
  4102. }
  4103.  
  4104. /* method: GetCollection */
  4105. Collection   GetCollection(Environment *ev)
  4106. {
  4107.    return SOM_ResolveD(this,HICheckBox,HIObject,GetCollection)
  4108.     (this,ev);
  4109. }
  4110.  
  4111. /* method: Init */
  4112. OSStatus   Init(Environment *ev,
  4113.         RefLabel* identifier,
  4114.         Rect* boundingRect)
  4115. {
  4116.    return SOM_ResolveD(this,HICheckBox,HIObject,Init)
  4117.     (this,ev,identifier,boundingRect);
  4118. }
  4119.  
  4120. /* method: Terminate */
  4121. void   Terminate(Environment *ev)
  4122. {
  4123.    SOM_ResolveD(this,HICheckBox,HIObject,Terminate)
  4124.     (this,ev);
  4125. }
  4126.  
  4127. /* method: Clone */
  4128. HIObject*   Clone(Environment *ev)
  4129. {
  4130.    return SOM_ResolveD(this,HICheckBox,HIObject,Clone)
  4131.     (this,ev);
  4132. }
  4133.  
  4134. /* method: Release */
  4135. void   Release(Environment *ev)
  4136. {
  4137.    SOM_ResolveD(this,HICheckBox,HIObject,Release)
  4138.     (this,ev);
  4139. }
  4140.  
  4141. /* method: GetOwnerCount */
  4142. ItemCount   GetOwnerCount(Environment *ev)
  4143. {
  4144.    return SOM_ResolveD(this,HICheckBox,HIObject,GetOwnerCount)
  4145.     (this,ev);
  4146. }
  4147.  
  4148. /* method: InitFromAERecord */
  4149. OSStatus   InitFromAERecord(Environment *ev,
  4150.         AESubDesc* baseInitializerData,
  4151.         AESubDesc* initializerDataForClass,
  4152.         HIAERecordDataFormat dataFormat)
  4153. {
  4154.    return SOM_ResolveD(this,HICheckBox,HIObject,InitFromAERecord)
  4155.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  4156. }
  4157.  
  4158. /* method: WriteToAERecord */
  4159. OSStatus   WriteToAERecord(Environment *ev,
  4160.         AERecord* dataForSubclass,
  4161.         AERecord* objectData,
  4162.         HIAERecordDataFormat dataFormat)
  4163. {
  4164.    return SOM_ResolveD(this,HICheckBox,HIObject,WriteToAERecord)
  4165.     (this,ev,dataForSubclass,objectData,dataFormat);
  4166. }
  4167.  
  4168. /* method: CalculateOptimalSize */
  4169. void   CalculateOptimalSize(Environment *ev,
  4170.         SInt16* optimalWidth,
  4171.         SInt16* optimalHeight)
  4172. {
  4173.    SOM_ResolveD(this,HICheckBox,HIObject,CalculateOptimalSize)
  4174.     (this,ev,optimalWidth,optimalHeight);
  4175. }
  4176.  
  4177. /* method: GetBoundingRect */
  4178. void   GetBoundingRect(Environment *ev,
  4179.         HICoordinateSystem coordinate,
  4180.         Rect* boundingRect)
  4181. {
  4182.    SOM_ResolveD(this,HICheckBox,HIObject,GetBoundingRect)
  4183.     (this,ev,coordinate,boundingRect);
  4184. }
  4185.  
  4186. /* method: SetBoundingRect */
  4187. void   SetBoundingRect(Environment *ev,
  4188.         HICoordinateSystem coordinate,
  4189.         Rect* newBoundingRect)
  4190. {
  4191.    SOM_ResolveD(this,HICheckBox,HIObject,SetBoundingRect)
  4192.     (this,ev,coordinate,newBoundingRect);
  4193. }
  4194.  
  4195. /* method: SetPosition */
  4196. void   SetPosition(Environment *ev,
  4197.         HICoordinateSystem coordinate,
  4198.         Point* newPosition)
  4199. {
  4200.    SOM_ResolveD(this,HICheckBox,HIObject,SetPosition)
  4201.     (this,ev,coordinate,newPosition);
  4202. }
  4203.  
  4204. /* method: SetSize */
  4205. void   SetSize(Environment *ev,
  4206.         SInt16 width,
  4207.         SInt16 height)
  4208. {
  4209.    SOM_ResolveD(this,HICheckBox,HIObject,SetSize)
  4210.     (this,ev,width,height);
  4211. }
  4212.  
  4213. /* method: GetUpdateRect */
  4214. void   GetUpdateRect(Environment *ev,
  4215.         HICoordinateSystem coordinate,
  4216.         Rect* updateRect)
  4217. {
  4218.    SOM_ResolveD(this,HICheckBox,HIObject,GetUpdateRect)
  4219.     (this,ev,coordinate,updateRect);
  4220. }
  4221.  
  4222. /* method: Enable */
  4223. void   Enable(Environment *ev)
  4224. {
  4225.    SOM_ResolveD(this,HICheckBox,HIObject,Enable)
  4226.     (this,ev);
  4227. }
  4228.  
  4229. /* method: Disable */
  4230. void   Disable(Environment *ev)
  4231. {
  4232.    SOM_ResolveD(this,HICheckBox,HIObject,Disable)
  4233.     (this,ev);
  4234. }
  4235.  
  4236. /* method: IsEnabled */
  4237. boolean   IsEnabled(Environment *ev)
  4238. {
  4239.    return SOM_ResolveD(this,HICheckBox,HIObject,IsEnabled)
  4240.     (this,ev);
  4241. }
  4242.  
  4243. /* method: Show */
  4244. void   Show(Environment *ev)
  4245. {
  4246.    SOM_ResolveD(this,HICheckBox,HIObject,Show)
  4247.     (this,ev);
  4248. }
  4249.  
  4250. /* method: Hide */
  4251. void   Hide(Environment *ev)
  4252. {
  4253.    SOM_ResolveD(this,HICheckBox,HIObject,Hide)
  4254.     (this,ev);
  4255. }
  4256.  
  4257. /* method: IsVisible */
  4258. boolean   IsVisible(Environment *ev)
  4259. {
  4260.    return SOM_ResolveD(this,HICheckBox,HIObject,IsVisible)
  4261.     (this,ev);
  4262. }
  4263.  
  4264. /* method: HandleAppleEvent */
  4265. OSStatus   HandleAppleEvent(Environment *ev,
  4266.         AEEventClass eventClass,
  4267.         AEEventID eventID,
  4268.         AppleEvent* theEvent,
  4269.         AppleEvent* reply,
  4270.         AEHandlerTableRef handlerTableRef)
  4271. {
  4272.    return SOM_ResolveD(this,HICheckBox,HIObject,HandleAppleEvent)
  4273.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  4274. }
  4275.  
  4276. /* method: HandleActivate */
  4277. OSStatus   HandleActivate(Environment *ev,
  4278.         AppleEvent* theEvent,
  4279.         AppleEvent* reply,
  4280.         AEHandlerTableRef handlerTableRef)
  4281. {
  4282.    return SOM_ResolveD(this,HICheckBox,HIObject,HandleActivate)
  4283.     (this,ev,theEvent,reply,handlerTableRef);
  4284. }
  4285.  
  4286. /* method: HandleDeactivate */
  4287. OSStatus   HandleDeactivate(Environment *ev,
  4288.         AppleEvent* theEvent,
  4289.         AppleEvent* reply,
  4290.         AEHandlerTableRef handlerTableRef)
  4291. {
  4292.    return SOM_ResolveD(this,HICheckBox,HIObject,HandleDeactivate)
  4293.     (this,ev,theEvent,reply,handlerTableRef);
  4294. }
  4295.  
  4296. /* method: HandleNavigation */
  4297. OSStatus   HandleNavigation(Environment *ev,
  4298.         SInt8 key,
  4299.         SInt8 keyCode,
  4300.         EventModifiers modifiers,
  4301.         AppleEvent* theEvent,
  4302.         AppleEvent* reply,
  4303.         AEHandlerTableRef handlerTableRef)
  4304. {
  4305.    return SOM_ResolveD(this,HICheckBox,HIObject,HandleNavigation)
  4306.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  4307. }
  4308.  
  4309. /* method: HandleMouseDownInContent */
  4310. OSStatus   HandleMouseDownInContent(Environment *ev,
  4311.         Point* portLocalWhere,
  4312.         EventModifiers modifiers,
  4313.         AppleEvent* theEvent,
  4314.         AppleEvent* reply,
  4315.         AEHandlerTableRef handlerTableRef)
  4316. {
  4317.    return SOM_ResolveD(this,HICheckBox,HIObject,HandleMouseDownInContent)
  4318.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  4319. }
  4320.  
  4321. /* method: HandleMouseMovedInContent */
  4322. OSStatus   HandleMouseMovedInContent(Environment *ev,
  4323.         Point* portLocalWhere,
  4324.         EventModifiers modifiers,
  4325.         AppleEvent* theEvent,
  4326.         AppleEvent* reply,
  4327.         AEHandlerTableRef handlerTableRef)
  4328. {
  4329.    return SOM_ResolveD(this,HICheckBox,HIObject,HandleMouseMovedInContent)
  4330.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  4331. }
  4332.  
  4333. /* method: HandleMouseStoppedMovingInContent */
  4334. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  4335.         Point* portLocalWhere,
  4336.         EventModifiers modifiers,
  4337.         AppleEvent* theEvent,
  4338.         AppleEvent* reply,
  4339.         AEHandlerTableRef handlerTableRef)
  4340. {
  4341.    return SOM_ResolveD(this,HICheckBox,HIObject,HandleMouseStoppedMovingInContent)
  4342.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  4343. }
  4344.  
  4345. /* method: HandleMouseUpInContent */
  4346. OSStatus   HandleMouseUpInContent(Environment *ev,
  4347.         Point* portLocalWhere,
  4348.         EventModifiers modifiers,
  4349.         AppleEvent* theEvent,
  4350.         AppleEvent* reply,
  4351.         AEHandlerTableRef handlerTableRef)
  4352. {
  4353.    return SOM_ResolveD(this,HICheckBox,HIObject,HandleMouseUpInContent)
  4354.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  4355. }
  4356.  
  4357. /* method: TakeUserInputFocus */
  4358. void   TakeUserInputFocus(Environment *ev)
  4359. {
  4360.    SOM_ResolveD(this,HICheckBox,HIObject,TakeUserInputFocus)
  4361.     (this,ev);
  4362. }
  4363.  
  4364. /* method: ReleaseUserInputFocus */
  4365. void   ReleaseUserInputFocus(Environment *ev)
  4366. {
  4367.    SOM_ResolveD(this,HICheckBox,HIObject,ReleaseUserInputFocus)
  4368.     (this,ev);
  4369. }
  4370.  
  4371. /* method: HasUserInputFocus */
  4372. boolean   HasUserInputFocus(Environment *ev)
  4373. {
  4374.    return SOM_ResolveD(this,HICheckBox,HIObject,HasUserInputFocus)
  4375.     (this,ev);
  4376. }
  4377.  
  4378. /* method: CanReleaseUserInputFocus */
  4379. boolean   CanReleaseUserInputFocus(Environment *ev)
  4380. {
  4381.    return SOM_ResolveD(this,HICheckBox,HIObject,CanReleaseUserInputFocus)
  4382.     (this,ev);
  4383. }
  4384.  
  4385. /* method: SetUserInputFocusFlags */
  4386. void   SetUserInputFocusFlags(Environment *ev,
  4387.         HIUserInputFocusFlags flags)
  4388. {
  4389.    SOM_ResolveD(this,HICheckBox,HIObject,SetUserInputFocusFlags)
  4390.     (this,ev,flags);
  4391. }
  4392.  
  4393. /* method: GetUserInputFocusFlags */
  4394. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  4395. {
  4396.    return SOM_ResolveD(this,HICheckBox,HIObject,GetUserInputFocusFlags)
  4397.     (this,ev);
  4398. }
  4399.  
  4400. /* method: SetTitle */
  4401. OSStatus   SetTitle(Environment *ev,
  4402.         ConstHIImageRef title,
  4403.         HIAdoptionFlags disposalAdoptionFlags)
  4404. {
  4405.    return SOM_ResolveD(this,HICheckBox,HIObject,SetTitle)
  4406.     (this,ev,title,disposalAdoptionFlags);
  4407. }
  4408.  
  4409. /* method: GetTitle */
  4410. OSStatus   GetTitle(Environment *ev,
  4411.         HIImageRef* title)
  4412. {
  4413.    return SOM_ResolveD(this,HICheckBox,HIObject,GetTitle)
  4414.     (this,ev,title);
  4415. }
  4416.  
  4417. /* method: Draw */
  4418. void   Draw(Environment *ev,
  4419.         CGrafPtr whichPort,
  4420.         RgnHandle drawRgn)
  4421. {
  4422.    SOM_ResolveD(this,HICheckBox,HIObject,Draw)
  4423.     (this,ev,whichPort,drawRgn);
  4424. }
  4425.  
  4426. /* method: Erase */
  4427. void   Erase(Environment *ev,
  4428.         CGrafPtr whichPort,
  4429.         RgnHandle eraseRgn)
  4430. {
  4431.    SOM_ResolveD(this,HICheckBox,HIObject,Erase)
  4432.     (this,ev,whichPort,eraseRgn);
  4433. }
  4434.  
  4435. /* method: Invalidate */
  4436. void   Invalidate(Environment *ev)
  4437. {
  4438.    SOM_ResolveD(this,HICheckBox,HIObject,Invalidate)
  4439.     (this,ev);
  4440. }
  4441.  
  4442. /* method: GetDrawingMode */
  4443. HIDrawingMode   GetDrawingMode(Environment *ev)
  4444. {
  4445.    return SOM_ResolveD(this,HICheckBox,HIObject,GetDrawingMode)
  4446.     (this,ev);
  4447. }
  4448.  
  4449. /* method: SetDrawingMode */
  4450. void   SetDrawingMode(Environment *ev,
  4451.         HIDrawingMode drawingMode)
  4452. {
  4453.    SOM_ResolveD(this,HICheckBox,HIObject,SetDrawingMode)
  4454.     (this,ev,drawingMode);
  4455. }
  4456.  
  4457. /* method: SetBackgroundPattern */
  4458. void   SetBackgroundPattern(Environment *ev,
  4459.         PixPatHandle backgroundPattern)
  4460. {
  4461.    SOM_ResolveD(this,HICheckBox,HIObject,SetBackgroundPattern)
  4462.     (this,ev,backgroundPattern);
  4463. }
  4464.  
  4465. /* method: GetBackgroundPattern */
  4466. PixPatHandle   GetBackgroundPattern(Environment *ev)
  4467. {
  4468.    return SOM_ResolveD(this,HICheckBox,HIObject,GetBackgroundPattern)
  4469.     (this,ev);
  4470. }
  4471.  
  4472. /* method: Cut */
  4473. void   Cut(Environment *ev)
  4474. {
  4475.    SOM_ResolveD(this,HICheckBox,HIObject,Cut)
  4476.     (this,ev);
  4477. }
  4478.  
  4479. /* method: Copy */
  4480. void   Copy(Environment *ev)
  4481. {
  4482.    SOM_ResolveD(this,HICheckBox,HIObject,Copy)
  4483.     (this,ev);
  4484. }
  4485.  
  4486. /* method: Paste */
  4487. void   Paste(Environment *ev)
  4488. {
  4489.    SOM_ResolveD(this,HICheckBox,HIObject,Paste)
  4490.     (this,ev);
  4491. }
  4492.  
  4493. /* method: Clear */
  4494. void   Clear(Environment *ev)
  4495. {
  4496.    SOM_ResolveD(this,HICheckBox,HIObject,Clear)
  4497.     (this,ev);
  4498. }
  4499.  
  4500. /* method: GetClipboardSupportFlags */
  4501. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  4502. {
  4503.    return SOM_ResolveD(this,HICheckBox,HIObject,GetClipboardSupportFlags)
  4504.     (this,ev);
  4505. }
  4506.  
  4507. /* method: AddStateChangeCallback */
  4508. OSStatus   AddStateChangeCallback(Environment *ev,
  4509.         HIStateChangeCallbackProcPtr changedStateCallback,
  4510.         HIStateChangeCallbackRef* newCallbackRef)
  4511. {
  4512.    return SOM_ResolveD(this,HICheckBox,HIObject,AddStateChangeCallback)
  4513.     (this,ev,changedStateCallback,newCallbackRef);
  4514. }
  4515.  
  4516. /* method: RemoveStateChangeCallback */
  4517. OSStatus   RemoveStateChangeCallback(Environment *ev,
  4518.         HIStateChangeCallbackRef callbackRefToRemove)
  4519. {
  4520.    return SOM_ResolveD(this,HICheckBox,HIObject,RemoveStateChangeCallback)
  4521.     (this,ev,callbackRefToRemove);
  4522. }
  4523.  
  4524. /* noself procedure: GetHIObjectFromRefLabel */
  4525. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  4526.         RefLabel* identifier,
  4527.         ItemCount requestedObjects,
  4528.         ItemCount* totalObjects,
  4529.         HIObject** theObjects)
  4530. {
  4531. return ((somTD_HICheckBox_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  4532.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  4533. }
  4534.  
  4535. /* noself procedure: GetNewHIObject */
  4536. static OSStatus   GetNewHIObject(Environment *ev,
  4537.         AESubDesc* objectInitializer,
  4538.         HIObject** newObject)
  4539. {
  4540. return ((somTD_HICheckBox_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  4541.     (ev,objectInitializer,newObject);
  4542. }
  4543.  
  4544. /* noself procedure: GetNewHIObjectFromResource */
  4545. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  4546.         ResID objectInitializerResourceID,
  4547.         HIObject** newObject)
  4548. {
  4549. return ((somTD_HICheckBox_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  4550.     (ev,objectInitializerResourceID,newObject);
  4551. }
  4552.  
  4553. /* method: DrawContent */
  4554. void   DrawContent(Environment *ev,
  4555.         CGrafPtr whichPort,
  4556.         RgnHandle drawRgn)
  4557. {
  4558.    SOM_ResolveD(this,HICheckBox,HIObject,DrawContent)
  4559.     (this,ev,whichPort,drawRgn);
  4560. }
  4561.  
  4562. /* method: EraseContent */
  4563. void   EraseContent(Environment *ev,
  4564.         CGrafPtr whichPort,
  4565.         RgnHandle regionToErase)
  4566. {
  4567.    SOM_ResolveD(this,HICheckBox,HIObject,EraseContent)
  4568.     (this,ev,whichPort,regionToErase);
  4569. }
  4570.  
  4571. /* method: TranslatePoint */
  4572. void   TranslatePoint(Environment *ev,
  4573.         HICoordinateSystem translateFrom,
  4574.         HICoordinateSystem translateTo,
  4575.         Point* sourcePoint,
  4576.         Point* translatedPoint)
  4577. {
  4578.    SOM_ResolveD(this,HICheckBox,HIObject,TranslatePoint)
  4579.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  4580. }
  4581.  
  4582. /* method: TranslateRect */
  4583. void   TranslateRect(Environment *ev,
  4584.         HICoordinateSystem translateFrom,
  4585.         HICoordinateSystem translateTo,
  4586.         Rect* sourceRect,
  4587.         Rect* translatedRect)
  4588. {
  4589.    SOM_ResolveD(this,HICheckBox,HIObject,TranslateRect)
  4590.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  4591. }
  4592.  
  4593. /* method: StateChanged */
  4594. void   StateChanged(Environment *ev,
  4595.         HIStateChangeCodeCreator selectorCreator,
  4596.         HIStateChangeCode changedCode)
  4597. {
  4598.    SOM_ResolveD(this,HICheckBox,HIObject,StateChanged)
  4599.     (this,ev,selectorCreator,changedCode);
  4600. }
  4601.  
  4602. /* method: SetClipboardSupportFlags */
  4603. void   SetClipboardSupportFlags(Environment *ev,
  4604.         HIClipboardSupportFlags flags)
  4605. {
  4606.    SOM_ResolveD(this,HICheckBox,HIObject,SetClipboardSupportFlags)
  4607.     (this,ev,flags);
  4608. }
  4609.  
  4610. /* method: Verify */
  4611. OSStatus   Verify(Environment *ev)
  4612. {
  4613.    return SOM_ResolveD(this,HICheckBox,HIObject,Verify)
  4614.     (this,ev);
  4615. }
  4616.  
  4617. /* method: somInit */
  4618. void   somInit()
  4619. {
  4620.    SOM_ResolveD(this,HICheckBox,SOMObject,somInit)
  4621.     (this);
  4622. }
  4623.  
  4624. /* method: somUninit */
  4625. void   somUninit()
  4626. {
  4627.    SOM_ResolveD(this,HICheckBox,SOMObject,somUninit)
  4628.     (this);
  4629. }
  4630.  
  4631. /* method: somDuplicateReference */
  4632. SOMObject*   somDuplicateReference()
  4633. {
  4634.    return SOM_ResolveD(this,HICheckBox,SOMObject,somDuplicateReference)
  4635.     (this);
  4636. }
  4637.  
  4638. /* method: somCompareReference */
  4639. boolean   somCompareReference(SOMObject* anObject)
  4640. {
  4641.    return SOM_ResolveD(this,HICheckBox,SOMObject,somCompareReference)
  4642.     (this,anObject);
  4643. }
  4644.  
  4645. /* method: somRelease */
  4646. SOMObject*   somRelease()
  4647. {
  4648.    return SOM_ResolveD(this,HICheckBox,SOMObject,somRelease)
  4649.     (this);
  4650. }
  4651.  
  4652. /* method: somFree */
  4653. void   somFree()
  4654. {
  4655.    SOM_ResolveD(this,HICheckBox,SOMObject,somFree)
  4656.     (this);
  4657. }
  4658.  
  4659. /* method: somCanDelete */
  4660. boolean   somCanDelete()
  4661. {
  4662.    return SOM_ResolveD(this,HICheckBox,SOMObject,somCanDelete)
  4663.     (this);
  4664. }
  4665.  
  4666. /* method: somGetClass */
  4667. SOMClass*   somGetClass()
  4668. {
  4669.    return SOM_ResolveD(this,HICheckBox,SOMObject,somGetClass)
  4670.     (this);
  4671. }
  4672.  
  4673. /* method: somGetClassName */
  4674. corbastring   somGetClassName()
  4675. {
  4676.    return SOM_ResolveD(this,HICheckBox,SOMObject,somGetClassName)
  4677.     (this);
  4678. }
  4679.  
  4680. /* method: somGetSize */
  4681. long   somGetSize()
  4682. {
  4683.    return SOM_ResolveD(this,HICheckBox,SOMObject,somGetSize)
  4684.     (this);
  4685. }
  4686.  
  4687. /* method: somIsA */
  4688. boolean   somIsA(SOMClass* aClassObj)
  4689. {
  4690.    return SOM_ResolveD(this,HICheckBox,SOMObject,somIsA)
  4691.     (this,aClassObj);
  4692. }
  4693.  
  4694. /* method: somRespondsTo */
  4695. boolean   somRespondsTo(somId mId)
  4696. {
  4697.    return SOM_ResolveD(this,HICheckBox,SOMObject,somRespondsTo)
  4698.     (this,mId);
  4699. }
  4700.  
  4701. /* method: somIsInstanceOf */
  4702. boolean   somIsInstanceOf(SOMClass* aClassObj)
  4703. {
  4704.    return SOM_ResolveD(this,HICheckBox,SOMObject,somIsInstanceOf)
  4705.     (this,aClassObj);
  4706. }
  4707.  
  4708. /* va_list method: somDispatch */
  4709. /* the va_list invocation form */
  4710. boolean   HICheckBox_somDispatch(somToken* retValue,
  4711.         somId methodId,
  4712.         va_list ap)
  4713. {
  4714.    return SOM_ResolveD(this,HICheckBox,SOMObject,somDispatch)
  4715.     (this,retValue,methodId,ap);
  4716. }
  4717.  
  4718. /* the varargs invocation form */
  4719. boolean   somDispatch(somToken* retValue,
  4720.         somId methodId,
  4721.         ...)
  4722. {
  4723.    va_list ap;
  4724.    va_start(ap, methodId);
  4725.       boolean __somResult = 
  4726.       (boolean) SOM_ResolveD(this,HICheckBox,SOMObject,somDispatch)
  4727.     (this,retValue,methodId,ap);
  4728.    va_end(ap);
  4729.    return __somResult;
  4730. }
  4731.  
  4732. /* va_list method: somClassDispatch */
  4733. /* the va_list invocation form */
  4734. boolean   HICheckBox_somClassDispatch(SOMClass* clsObj,
  4735.         somToken* retValue,
  4736.         somId methodId,
  4737.         va_list ap)
  4738. {
  4739.    return SOM_ResolveD(this,HICheckBox,SOMObject,somClassDispatch)
  4740.     (this,clsObj,retValue,methodId,ap);
  4741. }
  4742.  
  4743. /* the varargs invocation form */
  4744. boolean   somClassDispatch(SOMClass* clsObj,
  4745.         somToken* retValue,
  4746.         somId methodId,
  4747.         ...)
  4748. {
  4749.    va_list ap;
  4750.    va_start(ap, methodId);
  4751.       boolean __somResult = 
  4752.       (boolean) SOM_ResolveD(this,HICheckBox,SOMObject,somClassDispatch)
  4753.     (this,clsObj,retValue,methodId,ap);
  4754.    va_end(ap);
  4755.    return __somResult;
  4756. }
  4757.  
  4758. /* method: somCastObj */
  4759. boolean   somCastObj(SOMClass* cls)
  4760. {
  4761.    return SOM_ResolveD(this,HICheckBox,SOMObject,somCastObj)
  4762.     (this,cls);
  4763. }
  4764.  
  4765. /* method: somResetObj */
  4766. boolean   somResetObj()
  4767. {
  4768.    return SOM_ResolveD(this,HICheckBox,SOMObject,somResetObj)
  4769.     (this);
  4770. }
  4771.  
  4772. /* method: somPrintSelf */
  4773. SOMObject*   somPrintSelf()
  4774. {
  4775.    return SOM_ResolveD(this,HICheckBox,SOMObject,somPrintSelf)
  4776.     (this);
  4777. }
  4778.  
  4779. /* method: somDumpSelf */
  4780. void   somDumpSelf(long level)
  4781. {
  4782.    SOM_ResolveD(this,HICheckBox,SOMObject,somDumpSelf)
  4783.     (this,level);
  4784. }
  4785.  
  4786. /* method: somDumpSelfInt */
  4787. void   somDumpSelfInt(long level)
  4788. {
  4789.    SOM_ResolveD(this,HICheckBox,SOMObject,somDumpSelfInt)
  4790.     (this,level);
  4791. }
  4792.  
  4793. };   /* HICheckBox */
  4794.  
  4795.  
  4796.  
  4797. #endif       /* SOM_HICheckBox_xh */
  4798.  
  4799. #ifndef SOM_HIRadioButton_xh
  4800. #define SOM_HIRadioButton_xh
  4801.  
  4802. class HIRadioButton;
  4803.  
  4804. #define HIRadioButton_MajorVersion 0
  4805. #define HIRadioButton_MinorVersion 0
  4806.  
  4807. /* C++ SOM defs */
  4808. #include <somcls.xh>
  4809. #include <somcm.xh>
  4810.  
  4811. /* C++ parent defs */
  4812. #ifndef SOM_HIControl_xh
  4813. #include <HIControls.xh>
  4814. #endif
  4815.  
  4816. #ifndef HIRadioButton_API
  4817. #define HIRadioButton_API
  4818. /*
  4819.  * -- The Class API
  4820.  */
  4821.  
  4822. /*
  4823.  * Start of user-defined types:
  4824.  */
  4825.  
  4826. /*
  4827.  * End of user-defined types.
  4828.  */
  4829.  
  4830. #ifdef OLDIBMSOMAPISUPPORT
  4831. #define HIRadioButtonCClassData HIRadioButtonClassData
  4832. #define HIRadioButtonNewClass(major,minor) somNewVersionedClassReference(HIRadioButton,major,minor)
  4833. #endif
  4834.  
  4835. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  4836. #define HIRadioButtonMetaClass SOMClass
  4837.  
  4838. #if PRAGMA_ALIGN_SUPPORTED
  4839. #  pragma options align=power
  4840. #endif
  4841.  
  4842. /* The API to the HIRadioButton class object, and the methods it introduces. */
  4843. SOMEXTERN struct HIRadioButtonClassDataStructure {
  4844. #ifdef OLDIBMSOMAPISUPPORT
  4845.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  4846. #else
  4847.     long zero;
  4848. #endif
  4849.     somStaticClassInfo *sci;
  4850.     somDToken        instanceDataToken;
  4851.     long reserved [3];
  4852.     somMToken InitRadioButton;
  4853. } SOMDLINK HIRadioButtonClassData;
  4854.  
  4855. #if PRAGMA_ALIGN_SUPPORTED
  4856. #  pragma options align=reset
  4857. #endif
  4858.  
  4859. #if !defined(HIRadioButton_Class_Source) && !defined(SOM_Module_hicontrols_Source)
  4860. #if PRAGMA_IMPORT_SUPPORTED
  4861. #pragma import list HIRadioButtonClassData
  4862. #endif
  4863. #endif
  4864.  
  4865.  
  4866. /*
  4867.  * -- Typedefs for HIRadioButton Method Procedures
  4868.  */
  4869. SOMEXTERN {
  4870. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_InitRadioButton)(HIRadioButton *somSelf, Environment *ev,
  4871.         RefLabel* identifier,
  4872.         HIWindow* window,
  4873.         Rect* bounds);
  4874.  
  4875. /*
  4876.  * -- Typedefs for Inherited Methods
  4877.  */
  4878. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_InitControl)(HIRadioButton *somSelf, Environment *ev,
  4879.         RefLabel* identifier,
  4880.         HIWindow* window,
  4881.         Rect* bounds,
  4882.         SInt32 value,
  4883.         SInt32 minimumValue,
  4884.         SInt32 maximumValue);
  4885. typedef void   (* SOMLINK somTD_HIRadioButton_SetValue)(HIRadioButton *somSelf, Environment *ev,
  4886.         SInt32 newValue);
  4887. typedef SInt32   (* SOMLINK somTD_HIRadioButton_GetValue)(HIRadioButton *somSelf, Environment *ev);
  4888. typedef void   (* SOMLINK somTD_HIRadioButton_SetMinimum)(HIRadioButton *somSelf, Environment *ev,
  4889.         SInt32 newMinimum);
  4890. typedef SInt32   (* SOMLINK somTD_HIRadioButton_GetMinimum)(HIRadioButton *somSelf, Environment *ev);
  4891. typedef void   (* SOMLINK somTD_HIRadioButton_SetMaximum)(HIRadioButton *somSelf, Environment *ev,
  4892.         SInt32 newMaximum);
  4893. typedef SInt32   (* SOMLINK somTD_HIRadioButton_GetMaximum)(HIRadioButton *somSelf, Environment *ev);
  4894. typedef void   (* SOMLINK somTD_HIRadioButton_SimulateSelection)(HIRadioButton *somSelf, Environment *ev);
  4895. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIRadioButton_GetEmbeddingParent)(HIRadioButton *somSelf, Environment *ev);
  4896. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_InitPanel)(HIRadioButton *somSelf, Environment *ev,
  4897.         RefLabel* identifier,
  4898.         HIWindow* window,
  4899.         Rect* bounds);
  4900. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_RegisterInterestInAppleEvent)(HIRadioButton *somSelf, Environment *ev,
  4901.         AEHandlerTableRef table,
  4902.         AEEventClass eventClass,
  4903.         AEEventID eventID,
  4904.         HIEventRoutingType eventRouting);
  4905. typedef boolean   (* SOMLINK somTD_HIRadioButton_HasValidContent)(HIRadioButton *somSelf, Environment *ev);
  4906. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_GetDeepCollectionItemData)(HIRadioButton *somSelf, Environment *ev,
  4907.         CollectionTag tag,
  4908.         SInt32 id,
  4909.         ByteCount sizeAllowed,
  4910.         ByteCount* sizeReturned,
  4911.         void* itemData);
  4912. typedef HIWindow*   (* SOMLINK somTD_HIRadioButton_GetWindow)(HIRadioButton *somSelf, Environment *ev);
  4913. typedef CGrafPtr   (* SOMLINK somTD_HIRadioButton_GetPort)(HIRadioButton *somSelf, Environment *ev);
  4914. typedef void   (* SOMLINK somTD_HIRadioButton_GetRefLabel)(HIRadioButton *somSelf, Environment *ev,
  4915.         RefLabel* identifier);
  4916. typedef Collection   (* SOMLINK somTD_HIRadioButton_GetCollection)(HIRadioButton *somSelf, Environment *ev);
  4917. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_Init)(HIRadioButton *somSelf, Environment *ev,
  4918.         RefLabel* identifier,
  4919.         Rect* boundingRect);
  4920. typedef void   (* SOMLINK somTD_HIRadioButton_Terminate)(HIRadioButton *somSelf, Environment *ev);
  4921. typedef HIObject*   (* SOMLINK somTD_HIRadioButton_Clone)(HIRadioButton *somSelf, Environment *ev);
  4922. typedef void   (* SOMLINK somTD_HIRadioButton_Release)(HIRadioButton *somSelf, Environment *ev);
  4923. typedef ItemCount   (* SOMLINK somTD_HIRadioButton_GetOwnerCount)(HIRadioButton *somSelf, Environment *ev);
  4924. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_InitFromAERecord)(HIRadioButton *somSelf, Environment *ev,
  4925.         AESubDesc* baseInitializerData,
  4926.         AESubDesc* initializerDataForClass,
  4927.         HIAERecordDataFormat dataFormat);
  4928. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_WriteToAERecord)(HIRadioButton *somSelf, Environment *ev,
  4929.         AERecord* dataForSubclass,
  4930.         AERecord* objectData,
  4931.         HIAERecordDataFormat dataFormat);
  4932. typedef void   (* SOMLINK somTD_HIRadioButton_CalculateOptimalSize)(HIRadioButton *somSelf, Environment *ev,
  4933.         SInt16* optimalWidth,
  4934.         SInt16* optimalHeight);
  4935. typedef void   (* SOMLINK somTD_HIRadioButton_GetBoundingRect)(HIRadioButton *somSelf, Environment *ev,
  4936.         HICoordinateSystem coordinate,
  4937.         Rect* boundingRect);
  4938. typedef void   (* SOMLINK somTD_HIRadioButton_SetBoundingRect)(HIRadioButton *somSelf, Environment *ev,
  4939.         HICoordinateSystem coordinate,
  4940.         Rect* newBoundingRect);
  4941. typedef void   (* SOMLINK somTD_HIRadioButton_SetPosition)(HIRadioButton *somSelf, Environment *ev,
  4942.         HICoordinateSystem coordinate,
  4943.         Point* newPosition);
  4944. typedef void   (* SOMLINK somTD_HIRadioButton_SetSize)(HIRadioButton *somSelf, Environment *ev,
  4945.         SInt16 width,
  4946.         SInt16 height);
  4947. typedef void   (* SOMLINK somTD_HIRadioButton_GetUpdateRect)(HIRadioButton *somSelf, Environment *ev,
  4948.         HICoordinateSystem coordinate,
  4949.         Rect* updateRect);
  4950. typedef void   (* SOMLINK somTD_HIRadioButton_Enable)(HIRadioButton *somSelf, Environment *ev);
  4951. typedef void   (* SOMLINK somTD_HIRadioButton_Disable)(HIRadioButton *somSelf, Environment *ev);
  4952. typedef boolean   (* SOMLINK somTD_HIRadioButton_IsEnabled)(HIRadioButton *somSelf, Environment *ev);
  4953. typedef void   (* SOMLINK somTD_HIRadioButton_Show)(HIRadioButton *somSelf, Environment *ev);
  4954. typedef void   (* SOMLINK somTD_HIRadioButton_Hide)(HIRadioButton *somSelf, Environment *ev);
  4955. typedef boolean   (* SOMLINK somTD_HIRadioButton_IsVisible)(HIRadioButton *somSelf, Environment *ev);
  4956. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_HandleAppleEvent)(HIRadioButton *somSelf, Environment *ev,
  4957.         AEEventClass eventClass,
  4958.         AEEventID eventID,
  4959.         AppleEvent* theEvent,
  4960.         AppleEvent* reply,
  4961.         AEHandlerTableRef handlerTableRef);
  4962. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_HandleActivate)(HIRadioButton *somSelf, Environment *ev,
  4963.         AppleEvent* theEvent,
  4964.         AppleEvent* reply,
  4965.         AEHandlerTableRef handlerTableRef);
  4966. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_HandleDeactivate)(HIRadioButton *somSelf, Environment *ev,
  4967.         AppleEvent* theEvent,
  4968.         AppleEvent* reply,
  4969.         AEHandlerTableRef handlerTableRef);
  4970. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_HandleNavigation)(HIRadioButton *somSelf, Environment *ev,
  4971.         SInt8 key,
  4972.         SInt8 keyCode,
  4973.         EventModifiers modifiers,
  4974.         AppleEvent* theEvent,
  4975.         AppleEvent* reply,
  4976.         AEHandlerTableRef handlerTableRef);
  4977. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_HandleMouseDownInContent)(HIRadioButton *somSelf, Environment *ev,
  4978.         Point* portLocalWhere,
  4979.         EventModifiers modifiers,
  4980.         AppleEvent* theEvent,
  4981.         AppleEvent* reply,
  4982.         AEHandlerTableRef handlerTableRef);
  4983. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_HandleMouseMovedInContent)(HIRadioButton *somSelf, Environment *ev,
  4984.         Point* portLocalWhere,
  4985.         EventModifiers modifiers,
  4986.         AppleEvent* theEvent,
  4987.         AppleEvent* reply,
  4988.         AEHandlerTableRef handlerTableRef);
  4989. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_HandleMouseStoppedMovingInContent)(HIRadioButton *somSelf, Environment *ev,
  4990.         Point* portLocalWhere,
  4991.         EventModifiers modifiers,
  4992.         AppleEvent* theEvent,
  4993.         AppleEvent* reply,
  4994.         AEHandlerTableRef handlerTableRef);
  4995. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_HandleMouseUpInContent)(HIRadioButton *somSelf, Environment *ev,
  4996.         Point* portLocalWhere,
  4997.         EventModifiers modifiers,
  4998.         AppleEvent* theEvent,
  4999.         AppleEvent* reply,
  5000.         AEHandlerTableRef handlerTableRef);
  5001. typedef void   (* SOMLINK somTD_HIRadioButton_TakeUserInputFocus)(HIRadioButton *somSelf, Environment *ev);
  5002. typedef void   (* SOMLINK somTD_HIRadioButton_ReleaseUserInputFocus)(HIRadioButton *somSelf, Environment *ev);
  5003. typedef boolean   (* SOMLINK somTD_HIRadioButton_HasUserInputFocus)(HIRadioButton *somSelf, Environment *ev);
  5004. typedef boolean   (* SOMLINK somTD_HIRadioButton_CanReleaseUserInputFocus)(HIRadioButton *somSelf, Environment *ev);
  5005. typedef void   (* SOMLINK somTD_HIRadioButton_SetUserInputFocusFlags)(HIRadioButton *somSelf, Environment *ev,
  5006.         HIUserInputFocusFlags flags);
  5007. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIRadioButton_GetUserInputFocusFlags)(HIRadioButton *somSelf, Environment *ev);
  5008. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_SetTitle)(HIRadioButton *somSelf, Environment *ev,
  5009.         ConstHIImageRef title,
  5010.         HIAdoptionFlags disposalAdoptionFlags);
  5011. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_GetTitle)(HIRadioButton *somSelf, Environment *ev,
  5012.         HIImageRef* title);
  5013. typedef void   (* SOMLINK somTD_HIRadioButton_Draw)(HIRadioButton *somSelf, Environment *ev,
  5014.         CGrafPtr whichPort,
  5015.         RgnHandle drawRgn);
  5016. typedef void   (* SOMLINK somTD_HIRadioButton_Erase)(HIRadioButton *somSelf, Environment *ev,
  5017.         CGrafPtr whichPort,
  5018.         RgnHandle eraseRgn);
  5019. typedef void   (* SOMLINK somTD_HIRadioButton_Invalidate)(HIRadioButton *somSelf, Environment *ev);
  5020. typedef HIDrawingMode   (* SOMLINK somTD_HIRadioButton_GetDrawingMode)(HIRadioButton *somSelf, Environment *ev);
  5021. typedef void   (* SOMLINK somTD_HIRadioButton_SetDrawingMode)(HIRadioButton *somSelf, Environment *ev,
  5022.         HIDrawingMode drawingMode);
  5023. typedef void   (* SOMLINK somTD_HIRadioButton_SetBackgroundPattern)(HIRadioButton *somSelf, Environment *ev,
  5024.         PixPatHandle backgroundPattern);
  5025. typedef PixPatHandle   (* SOMLINK somTD_HIRadioButton_GetBackgroundPattern)(HIRadioButton *somSelf, Environment *ev);
  5026. typedef void   (* SOMLINK somTD_HIRadioButton_Cut)(HIRadioButton *somSelf, Environment *ev);
  5027. typedef void   (* SOMLINK somTD_HIRadioButton_Copy)(HIRadioButton *somSelf, Environment *ev);
  5028. typedef void   (* SOMLINK somTD_HIRadioButton_Paste)(HIRadioButton *somSelf, Environment *ev);
  5029. typedef void   (* SOMLINK somTD_HIRadioButton_Clear)(HIRadioButton *somSelf, Environment *ev);
  5030. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIRadioButton_GetClipboardSupportFlags)(HIRadioButton *somSelf, Environment *ev);
  5031. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_AddStateChangeCallback)(HIRadioButton *somSelf, Environment *ev,
  5032.         HIStateChangeCallbackProcPtr changedStateCallback,
  5033.         HIStateChangeCallbackRef* newCallbackRef);
  5034. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_RemoveStateChangeCallback)(HIRadioButton *somSelf, Environment *ev,
  5035.         HIStateChangeCallbackRef callbackRefToRemove);
  5036. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_GetHIObjectFromRefLabel)(Environment *ev,
  5037.         RefLabel* identifier,
  5038.         ItemCount requestedObjects,
  5039.         ItemCount* totalObjects,
  5040.         HIObject** theObjects);
  5041. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_GetNewHIObject)(Environment *ev,
  5042.         AESubDesc* objectInitializer,
  5043.         HIObject** newObject);
  5044. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_GetNewHIObjectFromResource)(Environment *ev,
  5045.         ResID objectInitializerResourceID,
  5046.         HIObject** newObject);
  5047. typedef void   (* SOMLINK somTD_HIRadioButton_DrawContent)(HIRadioButton *somSelf, Environment *ev,
  5048.         CGrafPtr whichPort,
  5049.         RgnHandle drawRgn);
  5050. typedef void   (* SOMLINK somTD_HIRadioButton_EraseContent)(HIRadioButton *somSelf, Environment *ev,
  5051.         CGrafPtr whichPort,
  5052.         RgnHandle regionToErase);
  5053. typedef void   (* SOMLINK somTD_HIRadioButton_TranslatePoint)(HIRadioButton *somSelf, Environment *ev,
  5054.         HICoordinateSystem translateFrom,
  5055.         HICoordinateSystem translateTo,
  5056.         Point* sourcePoint,
  5057.         Point* translatedPoint);
  5058. typedef void   (* SOMLINK somTD_HIRadioButton_TranslateRect)(HIRadioButton *somSelf, Environment *ev,
  5059.         HICoordinateSystem translateFrom,
  5060.         HICoordinateSystem translateTo,
  5061.         Rect* sourceRect,
  5062.         Rect* translatedRect);
  5063. typedef void   (* SOMLINK somTD_HIRadioButton_StateChanged)(HIRadioButton *somSelf, Environment *ev,
  5064.         HIStateChangeCodeCreator selectorCreator,
  5065.         HIStateChangeCode changedCode);
  5066. typedef void   (* SOMLINK somTD_HIRadioButton_SetClipboardSupportFlags)(HIRadioButton *somSelf, Environment *ev,
  5067.         HIClipboardSupportFlags flags);
  5068. typedef OSStatus   (* SOMLINK somTD_HIRadioButton_Verify)(HIRadioButton *somSelf, Environment *ev);
  5069. typedef void   (* SOMLINK somTD_HIRadioButton_somInit)(HIRadioButton *somSelf);
  5070. typedef void   (* SOMLINK somTD_HIRadioButton_somUninit)(HIRadioButton *somSelf);
  5071. typedef SOMObject*   (* SOMLINK somTD_HIRadioButton_somDuplicateReference)(HIRadioButton *somSelf);
  5072. typedef boolean   (* SOMLINK somTD_HIRadioButton_somCompareReference)(HIRadioButton *somSelf,
  5073.         SOMObject* anObject);
  5074. typedef SOMObject*   (* SOMLINK somTD_HIRadioButton_somRelease)(HIRadioButton *somSelf);
  5075. typedef void   (* SOMLINK somTD_HIRadioButton_somFree)(HIRadioButton *somSelf);
  5076. typedef boolean   (* SOMLINK somTD_HIRadioButton_somCanDelete)(HIRadioButton *somSelf);
  5077. typedef SOMClass*   (* SOMLINK somTD_HIRadioButton_somGetClass)(HIRadioButton *somSelf);
  5078. typedef corbastring   (* SOMLINK somTD_HIRadioButton_somGetClassName)(HIRadioButton *somSelf);
  5079. typedef long   (* SOMLINK somTD_HIRadioButton_somGetSize)(HIRadioButton *somSelf);
  5080. typedef boolean   (* SOMLINK somTD_HIRadioButton_somIsA)(HIRadioButton *somSelf,
  5081.         SOMClass* aClassObj);
  5082. typedef boolean   (* SOMLINK somTD_HIRadioButton_somRespondsTo)(HIRadioButton *somSelf,
  5083.         somId mId);
  5084. typedef boolean   (* SOMLINK somTD_HIRadioButton_somIsInstanceOf)(HIRadioButton *somSelf,
  5085.         SOMClass* aClassObj);
  5086. typedef boolean   (* SOMLINK somTD_HIRadioButton_somDispatch)(HIRadioButton *somSelf,
  5087.         somToken* retValue,
  5088.         somId methodId,
  5089.         va_list ap);
  5090. typedef boolean   (* SOMLINK somTD_HIRadioButton_somClassDispatch)(HIRadioButton *somSelf,
  5091.         SOMClass* clsObj,
  5092.         somToken* retValue,
  5093.         somId methodId,
  5094.         va_list ap);
  5095. typedef boolean   (* SOMLINK somTD_HIRadioButton_somCastObj)(HIRadioButton *somSelf,
  5096.         SOMClass* cls);
  5097. typedef boolean   (* SOMLINK somTD_HIRadioButton_somResetObj)(HIRadioButton *somSelf);
  5098. typedef SOMObject*   (* SOMLINK somTD_HIRadioButton_somPrintSelf)(HIRadioButton *somSelf);
  5099. typedef void   (* SOMLINK somTD_HIRadioButton_somDumpSelf)(HIRadioButton *somSelf,
  5100.         long level);
  5101. typedef void   (* SOMLINK somTD_HIRadioButton_somDumpSelfInt)(HIRadioButton *somSelf,
  5102.         long level);
  5103. }
  5104.  
  5105. #endif /* HIRadioButton_API */
  5106.  
  5107.  
  5108. /*
  5109.  * -- This emitter treats Method Tokens as Thunks by default.
  5110.  * -- Use the sc modifier "nothunks" to change this default
  5111.  */
  5112. #undef somresolve_
  5113. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  5114.  
  5115. /*
  5116.  * -- The C++ Wrapper Class for HIRadioButton
  5117.  */
  5118. class HIRadioButton : public HIControl
  5119. {
  5120. public:
  5121.  
  5122. // HIRadioButton::new registers use of the class object, and then uses somNew
  5123. // to allocate memory and load the object method table pointer. 
  5124. void *operator new(size_t size)
  5125. {
  5126.     SOM_IgnoreWarning(size);
  5127.     // Allocate memory using the default allocator for HIRadioButton, and
  5128.     // clear mem & set method table pointer, call basic initialization
  5129.     return (void*) somNewObject(HIRadioButton);
  5130. }
  5131.  
  5132. // HIRadioButton::delete uses the default deallocator for the object's class.
  5133. void operator delete(void * obj)
  5134. {
  5135.     if (obj) {
  5136.         SOM_Resolve(obj,SOMObject,somFree)
  5137.            ( (SOMObject*) obj );
  5138.     }
  5139. }
  5140.  
  5141. /* method: InitRadioButton */
  5142. OSStatus   InitRadioButton(Environment *ev,
  5143.         RefLabel* identifier,
  5144.         HIWindow* window,
  5145.         Rect* bounds)
  5146. {
  5147.    return SOM_ResolveD(this,HIRadioButton,HIRadioButton,InitRadioButton)
  5148.     (this,ev,identifier,window,bounds);
  5149. }
  5150.  
  5151.  
  5152. /*
  5153.  * -- Inherited methods
  5154.  */
  5155. /* method: InitControl */
  5156. OSStatus   InitControl(Environment *ev,
  5157.         RefLabel* identifier,
  5158.         HIWindow* window,
  5159.         Rect* bounds,
  5160.         SInt32 value,
  5161.         SInt32 minimumValue,
  5162.         SInt32 maximumValue)
  5163. {
  5164.    return SOM_ResolveD(this,HIRadioButton,HIControl,InitControl)
  5165.     (this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
  5166. }
  5167.  
  5168. /* method: SetValue */
  5169. void   SetValue(Environment *ev,
  5170.         SInt32 newValue)
  5171. {
  5172.    SOM_ResolveD(this,HIRadioButton,HIControl,SetValue)
  5173.     (this,ev,newValue);
  5174. }
  5175.  
  5176. /* method: GetValue */
  5177. SInt32   GetValue(Environment *ev)
  5178. {
  5179.    return SOM_ResolveD(this,HIRadioButton,HIControl,GetValue)
  5180.     (this,ev);
  5181. }
  5182.  
  5183. /* method: SetMinimum */
  5184. void   SetMinimum(Environment *ev,
  5185.         SInt32 newMinimum)
  5186. {
  5187.    SOM_ResolveD(this,HIRadioButton,HIControl,SetMinimum)
  5188.     (this,ev,newMinimum);
  5189. }
  5190.  
  5191. /* method: GetMinimum */
  5192. SInt32   GetMinimum(Environment *ev)
  5193. {
  5194.    return SOM_ResolveD(this,HIRadioButton,HIControl,GetMinimum)
  5195.     (this,ev);
  5196. }
  5197.  
  5198. /* method: SetMaximum */
  5199. void   SetMaximum(Environment *ev,
  5200.         SInt32 newMaximum)
  5201. {
  5202.    SOM_ResolveD(this,HIRadioButton,HIControl,SetMaximum)
  5203.     (this,ev,newMaximum);
  5204. }
  5205.  
  5206. /* method: GetMaximum */
  5207. SInt32   GetMaximum(Environment *ev)
  5208. {
  5209.    return SOM_ResolveD(this,HIRadioButton,HIControl,GetMaximum)
  5210.     (this,ev);
  5211. }
  5212.  
  5213. /* method: SimulateSelection */
  5214. void   SimulateSelection(Environment *ev)
  5215. {
  5216.    SOM_ResolveD(this,HIRadioButton,HIControl,SimulateSelection)
  5217.     (this,ev);
  5218. }
  5219.  
  5220. /* method: GetEmbeddingParent */
  5221. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  5222. {
  5223.    return SOM_ResolveD(this,HIRadioButton,HIPanel,GetEmbeddingParent)
  5224.     (this,ev);
  5225. }
  5226.  
  5227. /* method: InitPanel */
  5228. OSStatus   InitPanel(Environment *ev,
  5229.         RefLabel* identifier,
  5230.         HIWindow* window,
  5231.         Rect* bounds)
  5232. {
  5233.    return SOM_ResolveD(this,HIRadioButton,HIPanel,InitPanel)
  5234.     (this,ev,identifier,window,bounds);
  5235. }
  5236.  
  5237. /* method: RegisterInterestInAppleEvent */
  5238. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  5239.         AEHandlerTableRef table,
  5240.         AEEventClass eventClass,
  5241.         AEEventID eventID,
  5242.         HIEventRoutingType eventRouting)
  5243. {
  5244.    return SOM_ResolveD(this,HIRadioButton,HIPanel,RegisterInterestInAppleEvent)
  5245.     (this,ev,table,eventClass,eventID,eventRouting);
  5246. }
  5247.  
  5248. /* method: HasValidContent */
  5249. boolean   HasValidContent(Environment *ev)
  5250. {
  5251.    return SOM_ResolveD(this,HIRadioButton,HIPanel,HasValidContent)
  5252.     (this,ev);
  5253. }
  5254.  
  5255. /* method: GetDeepCollectionItemData */
  5256. OSStatus   GetDeepCollectionItemData(Environment *ev,
  5257.         CollectionTag tag,
  5258.         SInt32 id,
  5259.         ByteCount sizeAllowed,
  5260.         ByteCount* sizeReturned,
  5261.         void* itemData)
  5262. {
  5263.    return SOM_ResolveD(this,HIRadioButton,HIPanel,GetDeepCollectionItemData)
  5264.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  5265. }
  5266.  
  5267. /* method: GetWindow */
  5268. HIWindow*   GetWindow(Environment *ev)
  5269. {
  5270.    return SOM_ResolveD(this,HIRadioButton,HIObject,GetWindow)
  5271.     (this,ev);
  5272. }
  5273.  
  5274. /* method: GetPort */
  5275. CGrafPtr   GetPort(Environment *ev)
  5276. {
  5277.    return SOM_ResolveD(this,HIRadioButton,HIObject,GetPort)
  5278.     (this,ev);
  5279. }
  5280.  
  5281. /* method: GetRefLabel */
  5282. void   GetRefLabel(Environment *ev,
  5283.         RefLabel* identifier)
  5284. {
  5285.    SOM_ResolveD(this,HIRadioButton,HIObject,GetRefLabel)
  5286.     (this,ev,identifier);
  5287. }
  5288.  
  5289. /* method: GetCollection */
  5290. Collection   GetCollection(Environment *ev)
  5291. {
  5292.    return SOM_ResolveD(this,HIRadioButton,HIObject,GetCollection)
  5293.     (this,ev);
  5294. }
  5295.  
  5296. /* method: Init */
  5297. OSStatus   Init(Environment *ev,
  5298.         RefLabel* identifier,
  5299.         Rect* boundingRect)
  5300. {
  5301.    return SOM_ResolveD(this,HIRadioButton,HIObject,Init)
  5302.     (this,ev,identifier,boundingRect);
  5303. }
  5304.  
  5305. /* method: Terminate */
  5306. void   Terminate(Environment *ev)
  5307. {
  5308.    SOM_ResolveD(this,HIRadioButton,HIObject,Terminate)
  5309.     (this,ev);
  5310. }
  5311.  
  5312. /* method: Clone */
  5313. HIObject*   Clone(Environment *ev)
  5314. {
  5315.    return SOM_ResolveD(this,HIRadioButton,HIObject,Clone)
  5316.     (this,ev);
  5317. }
  5318.  
  5319. /* method: Release */
  5320. void   Release(Environment *ev)
  5321. {
  5322.    SOM_ResolveD(this,HIRadioButton,HIObject,Release)
  5323.     (this,ev);
  5324. }
  5325.  
  5326. /* method: GetOwnerCount */
  5327. ItemCount   GetOwnerCount(Environment *ev)
  5328. {
  5329.    return SOM_ResolveD(this,HIRadioButton,HIObject,GetOwnerCount)
  5330.     (this,ev);
  5331. }
  5332.  
  5333. /* method: InitFromAERecord */
  5334. OSStatus   InitFromAERecord(Environment *ev,
  5335.         AESubDesc* baseInitializerData,
  5336.         AESubDesc* initializerDataForClass,
  5337.         HIAERecordDataFormat dataFormat)
  5338. {
  5339.    return SOM_ResolveD(this,HIRadioButton,HIObject,InitFromAERecord)
  5340.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  5341. }
  5342.  
  5343. /* method: WriteToAERecord */
  5344. OSStatus   WriteToAERecord(Environment *ev,
  5345.         AERecord* dataForSubclass,
  5346.         AERecord* objectData,
  5347.         HIAERecordDataFormat dataFormat)
  5348. {
  5349.    return SOM_ResolveD(this,HIRadioButton,HIObject,WriteToAERecord)
  5350.     (this,ev,dataForSubclass,objectData,dataFormat);
  5351. }
  5352.  
  5353. /* method: CalculateOptimalSize */
  5354. void   CalculateOptimalSize(Environment *ev,
  5355.         SInt16* optimalWidth,
  5356.         SInt16* optimalHeight)
  5357. {
  5358.    SOM_ResolveD(this,HIRadioButton,HIObject,CalculateOptimalSize)
  5359.     (this,ev,optimalWidth,optimalHeight);
  5360. }
  5361.  
  5362. /* method: GetBoundingRect */
  5363. void   GetBoundingRect(Environment *ev,
  5364.         HICoordinateSystem coordinate,
  5365.         Rect* boundingRect)
  5366. {
  5367.    SOM_ResolveD(this,HIRadioButton,HIObject,GetBoundingRect)
  5368.     (this,ev,coordinate,boundingRect);
  5369. }
  5370.  
  5371. /* method: SetBoundingRect */
  5372. void   SetBoundingRect(Environment *ev,
  5373.         HICoordinateSystem coordinate,
  5374.         Rect* newBoundingRect)
  5375. {
  5376.    SOM_ResolveD(this,HIRadioButton,HIObject,SetBoundingRect)
  5377.     (this,ev,coordinate,newBoundingRect);
  5378. }
  5379.  
  5380. /* method: SetPosition */
  5381. void   SetPosition(Environment *ev,
  5382.         HICoordinateSystem coordinate,
  5383.         Point* newPosition)
  5384. {
  5385.    SOM_ResolveD(this,HIRadioButton,HIObject,SetPosition)
  5386.     (this,ev,coordinate,newPosition);
  5387. }
  5388.  
  5389. /* method: SetSize */
  5390. void   SetSize(Environment *ev,
  5391.         SInt16 width,
  5392.         SInt16 height)
  5393. {
  5394.    SOM_ResolveD(this,HIRadioButton,HIObject,SetSize)
  5395.     (this,ev,width,height);
  5396. }
  5397.  
  5398. /* method: GetUpdateRect */
  5399. void   GetUpdateRect(Environment *ev,
  5400.         HICoordinateSystem coordinate,
  5401.         Rect* updateRect)
  5402. {
  5403.    SOM_ResolveD(this,HIRadioButton,HIObject,GetUpdateRect)
  5404.     (this,ev,coordinate,updateRect);
  5405. }
  5406.  
  5407. /* method: Enable */
  5408. void   Enable(Environment *ev)
  5409. {
  5410.    SOM_ResolveD(this,HIRadioButton,HIObject,Enable)
  5411.     (this,ev);
  5412. }
  5413.  
  5414. /* method: Disable */
  5415. void   Disable(Environment *ev)
  5416. {
  5417.    SOM_ResolveD(this,HIRadioButton,HIObject,Disable)
  5418.     (this,ev);
  5419. }
  5420.  
  5421. /* method: IsEnabled */
  5422. boolean   IsEnabled(Environment *ev)
  5423. {
  5424.    return SOM_ResolveD(this,HIRadioButton,HIObject,IsEnabled)
  5425.     (this,ev);
  5426. }
  5427.  
  5428. /* method: Show */
  5429. void   Show(Environment *ev)
  5430. {
  5431.    SOM_ResolveD(this,HIRadioButton,HIObject,Show)
  5432.     (this,ev);
  5433. }
  5434.  
  5435. /* method: Hide */
  5436. void   Hide(Environment *ev)
  5437. {
  5438.    SOM_ResolveD(this,HIRadioButton,HIObject,Hide)
  5439.     (this,ev);
  5440. }
  5441.  
  5442. /* method: IsVisible */
  5443. boolean   IsVisible(Environment *ev)
  5444. {
  5445.    return SOM_ResolveD(this,HIRadioButton,HIObject,IsVisible)
  5446.     (this,ev);
  5447. }
  5448.  
  5449. /* method: HandleAppleEvent */
  5450. OSStatus   HandleAppleEvent(Environment *ev,
  5451.         AEEventClass eventClass,
  5452.         AEEventID eventID,
  5453.         AppleEvent* theEvent,
  5454.         AppleEvent* reply,
  5455.         AEHandlerTableRef handlerTableRef)
  5456. {
  5457.    return SOM_ResolveD(this,HIRadioButton,HIObject,HandleAppleEvent)
  5458.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  5459. }
  5460.  
  5461. /* method: HandleActivate */
  5462. OSStatus   HandleActivate(Environment *ev,
  5463.         AppleEvent* theEvent,
  5464.         AppleEvent* reply,
  5465.         AEHandlerTableRef handlerTableRef)
  5466. {
  5467.    return SOM_ResolveD(this,HIRadioButton,HIObject,HandleActivate)
  5468.     (this,ev,theEvent,reply,handlerTableRef);
  5469. }
  5470.  
  5471. /* method: HandleDeactivate */
  5472. OSStatus   HandleDeactivate(Environment *ev,
  5473.         AppleEvent* theEvent,
  5474.         AppleEvent* reply,
  5475.         AEHandlerTableRef handlerTableRef)
  5476. {
  5477.    return SOM_ResolveD(this,HIRadioButton,HIObject,HandleDeactivate)
  5478.     (this,ev,theEvent,reply,handlerTableRef);
  5479. }
  5480.  
  5481. /* method: HandleNavigation */
  5482. OSStatus   HandleNavigation(Environment *ev,
  5483.         SInt8 key,
  5484.         SInt8 keyCode,
  5485.         EventModifiers modifiers,
  5486.         AppleEvent* theEvent,
  5487.         AppleEvent* reply,
  5488.         AEHandlerTableRef handlerTableRef)
  5489. {
  5490.    return SOM_ResolveD(this,HIRadioButton,HIObject,HandleNavigation)
  5491.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  5492. }
  5493.  
  5494. /* method: HandleMouseDownInContent */
  5495. OSStatus   HandleMouseDownInContent(Environment *ev,
  5496.         Point* portLocalWhere,
  5497.         EventModifiers modifiers,
  5498.         AppleEvent* theEvent,
  5499.         AppleEvent* reply,
  5500.         AEHandlerTableRef handlerTableRef)
  5501. {
  5502.    return SOM_ResolveD(this,HIRadioButton,HIObject,HandleMouseDownInContent)
  5503.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  5504. }
  5505.  
  5506. /* method: HandleMouseMovedInContent */
  5507. OSStatus   HandleMouseMovedInContent(Environment *ev,
  5508.         Point* portLocalWhere,
  5509.         EventModifiers modifiers,
  5510.         AppleEvent* theEvent,
  5511.         AppleEvent* reply,
  5512.         AEHandlerTableRef handlerTableRef)
  5513. {
  5514.    return SOM_ResolveD(this,HIRadioButton,HIObject,HandleMouseMovedInContent)
  5515.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  5516. }
  5517.  
  5518. /* method: HandleMouseStoppedMovingInContent */
  5519. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  5520.         Point* portLocalWhere,
  5521.         EventModifiers modifiers,
  5522.         AppleEvent* theEvent,
  5523.         AppleEvent* reply,
  5524.         AEHandlerTableRef handlerTableRef)
  5525. {
  5526.    return SOM_ResolveD(this,HIRadioButton,HIObject,HandleMouseStoppedMovingInContent)
  5527.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  5528. }
  5529.  
  5530. /* method: HandleMouseUpInContent */
  5531. OSStatus   HandleMouseUpInContent(Environment *ev,
  5532.         Point* portLocalWhere,
  5533.         EventModifiers modifiers,
  5534.         AppleEvent* theEvent,
  5535.         AppleEvent* reply,
  5536.         AEHandlerTableRef handlerTableRef)
  5537. {
  5538.    return SOM_ResolveD(this,HIRadioButton,HIObject,HandleMouseUpInContent)
  5539.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  5540. }
  5541.  
  5542. /* method: TakeUserInputFocus */
  5543. void   TakeUserInputFocus(Environment *ev)
  5544. {
  5545.    SOM_ResolveD(this,HIRadioButton,HIObject,TakeUserInputFocus)
  5546.     (this,ev);
  5547. }
  5548.  
  5549. /* method: ReleaseUserInputFocus */
  5550. void   ReleaseUserInputFocus(Environment *ev)
  5551. {
  5552.    SOM_ResolveD(this,HIRadioButton,HIObject,ReleaseUserInputFocus)
  5553.     (this,ev);
  5554. }
  5555.  
  5556. /* method: HasUserInputFocus */
  5557. boolean   HasUserInputFocus(Environment *ev)
  5558. {
  5559.    return SOM_ResolveD(this,HIRadioButton,HIObject,HasUserInputFocus)
  5560.     (this,ev);
  5561. }
  5562.  
  5563. /* method: CanReleaseUserInputFocus */
  5564. boolean   CanReleaseUserInputFocus(Environment *ev)
  5565. {
  5566.    return SOM_ResolveD(this,HIRadioButton,HIObject,CanReleaseUserInputFocus)
  5567.     (this,ev);
  5568. }
  5569.  
  5570. /* method: SetUserInputFocusFlags */
  5571. void   SetUserInputFocusFlags(Environment *ev,
  5572.         HIUserInputFocusFlags flags)
  5573. {
  5574.    SOM_ResolveD(this,HIRadioButton,HIObject,SetUserInputFocusFlags)
  5575.     (this,ev,flags);
  5576. }
  5577.  
  5578. /* method: GetUserInputFocusFlags */
  5579. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  5580. {
  5581.    return SOM_ResolveD(this,HIRadioButton,HIObject,GetUserInputFocusFlags)
  5582.     (this,ev);
  5583. }
  5584.  
  5585. /* method: SetTitle */
  5586. OSStatus   SetTitle(Environment *ev,
  5587.         ConstHIImageRef title,
  5588.         HIAdoptionFlags disposalAdoptionFlags)
  5589. {
  5590.    return SOM_ResolveD(this,HIRadioButton,HIObject,SetTitle)
  5591.     (this,ev,title,disposalAdoptionFlags);
  5592. }
  5593.  
  5594. /* method: GetTitle */
  5595. OSStatus   GetTitle(Environment *ev,
  5596.         HIImageRef* title)
  5597. {
  5598.    return SOM_ResolveD(this,HIRadioButton,HIObject,GetTitle)
  5599.     (this,ev,title);
  5600. }
  5601.  
  5602. /* method: Draw */
  5603. void   Draw(Environment *ev,
  5604.         CGrafPtr whichPort,
  5605.         RgnHandle drawRgn)
  5606. {
  5607.    SOM_ResolveD(this,HIRadioButton,HIObject,Draw)
  5608.     (this,ev,whichPort,drawRgn);
  5609. }
  5610.  
  5611. /* method: Erase */
  5612. void   Erase(Environment *ev,
  5613.         CGrafPtr whichPort,
  5614.         RgnHandle eraseRgn)
  5615. {
  5616.    SOM_ResolveD(this,HIRadioButton,HIObject,Erase)
  5617.     (this,ev,whichPort,eraseRgn);
  5618. }
  5619.  
  5620. /* method: Invalidate */
  5621. void   Invalidate(Environment *ev)
  5622. {
  5623.    SOM_ResolveD(this,HIRadioButton,HIObject,Invalidate)
  5624.     (this,ev);
  5625. }
  5626.  
  5627. /* method: GetDrawingMode */
  5628. HIDrawingMode   GetDrawingMode(Environment *ev)
  5629. {
  5630.    return SOM_ResolveD(this,HIRadioButton,HIObject,GetDrawingMode)
  5631.     (this,ev);
  5632. }
  5633.  
  5634. /* method: SetDrawingMode */
  5635. void   SetDrawingMode(Environment *ev,
  5636.         HIDrawingMode drawingMode)
  5637. {
  5638.    SOM_ResolveD(this,HIRadioButton,HIObject,SetDrawingMode)
  5639.     (this,ev,drawingMode);
  5640. }
  5641.  
  5642. /* method: SetBackgroundPattern */
  5643. void   SetBackgroundPattern(Environment *ev,
  5644.         PixPatHandle backgroundPattern)
  5645. {
  5646.    SOM_ResolveD(this,HIRadioButton,HIObject,SetBackgroundPattern)
  5647.     (this,ev,backgroundPattern);
  5648. }
  5649.  
  5650. /* method: GetBackgroundPattern */
  5651. PixPatHandle   GetBackgroundPattern(Environment *ev)
  5652. {
  5653.    return SOM_ResolveD(this,HIRadioButton,HIObject,GetBackgroundPattern)
  5654.     (this,ev);
  5655. }
  5656.  
  5657. /* method: Cut */
  5658. void   Cut(Environment *ev)
  5659. {
  5660.    SOM_ResolveD(this,HIRadioButton,HIObject,Cut)
  5661.     (this,ev);
  5662. }
  5663.  
  5664. /* method: Copy */
  5665. void   Copy(Environment *ev)
  5666. {
  5667.    SOM_ResolveD(this,HIRadioButton,HIObject,Copy)
  5668.     (this,ev);
  5669. }
  5670.  
  5671. /* method: Paste */
  5672. void   Paste(Environment *ev)
  5673. {
  5674.    SOM_ResolveD(this,HIRadioButton,HIObject,Paste)
  5675.     (this,ev);
  5676. }
  5677.  
  5678. /* method: Clear */
  5679. void   Clear(Environment *ev)
  5680. {
  5681.    SOM_ResolveD(this,HIRadioButton,HIObject,Clear)
  5682.     (this,ev);
  5683. }
  5684.  
  5685. /* method: GetClipboardSupportFlags */
  5686. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  5687. {
  5688.    return SOM_ResolveD(this,HIRadioButton,HIObject,GetClipboardSupportFlags)
  5689.     (this,ev);
  5690. }
  5691.  
  5692. /* method: AddStateChangeCallback */
  5693. OSStatus   AddStateChangeCallback(Environment *ev,
  5694.         HIStateChangeCallbackProcPtr changedStateCallback,
  5695.         HIStateChangeCallbackRef* newCallbackRef)
  5696. {
  5697.    return SOM_ResolveD(this,HIRadioButton,HIObject,AddStateChangeCallback)
  5698.     (this,ev,changedStateCallback,newCallbackRef);
  5699. }
  5700.  
  5701. /* method: RemoveStateChangeCallback */
  5702. OSStatus   RemoveStateChangeCallback(Environment *ev,
  5703.         HIStateChangeCallbackRef callbackRefToRemove)
  5704. {
  5705.    return SOM_ResolveD(this,HIRadioButton,HIObject,RemoveStateChangeCallback)
  5706.     (this,ev,callbackRefToRemove);
  5707. }
  5708.  
  5709. /* noself procedure: GetHIObjectFromRefLabel */
  5710. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  5711.         RefLabel* identifier,
  5712.         ItemCount requestedObjects,
  5713.         ItemCount* totalObjects,
  5714.         HIObject** theObjects)
  5715. {
  5716. return ((somTD_HIRadioButton_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  5717.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  5718. }
  5719.  
  5720. /* noself procedure: GetNewHIObject */
  5721. static OSStatus   GetNewHIObject(Environment *ev,
  5722.         AESubDesc* objectInitializer,
  5723.         HIObject** newObject)
  5724. {
  5725. return ((somTD_HIRadioButton_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  5726.     (ev,objectInitializer,newObject);
  5727. }
  5728.  
  5729. /* noself procedure: GetNewHIObjectFromResource */
  5730. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  5731.         ResID objectInitializerResourceID,
  5732.         HIObject** newObject)
  5733. {
  5734. return ((somTD_HIRadioButton_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  5735.     (ev,objectInitializerResourceID,newObject);
  5736. }
  5737.  
  5738. /* method: DrawContent */
  5739. void   DrawContent(Environment *ev,
  5740.         CGrafPtr whichPort,
  5741.         RgnHandle drawRgn)
  5742. {
  5743.    SOM_ResolveD(this,HIRadioButton,HIObject,DrawContent)
  5744.     (this,ev,whichPort,drawRgn);
  5745. }
  5746.  
  5747. /* method: EraseContent */
  5748. void   EraseContent(Environment *ev,
  5749.         CGrafPtr whichPort,
  5750.         RgnHandle regionToErase)
  5751. {
  5752.    SOM_ResolveD(this,HIRadioButton,HIObject,EraseContent)
  5753.     (this,ev,whichPort,regionToErase);
  5754. }
  5755.  
  5756. /* method: TranslatePoint */
  5757. void   TranslatePoint(Environment *ev,
  5758.         HICoordinateSystem translateFrom,
  5759.         HICoordinateSystem translateTo,
  5760.         Point* sourcePoint,
  5761.         Point* translatedPoint)
  5762. {
  5763.    SOM_ResolveD(this,HIRadioButton,HIObject,TranslatePoint)
  5764.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  5765. }
  5766.  
  5767. /* method: TranslateRect */
  5768. void   TranslateRect(Environment *ev,
  5769.         HICoordinateSystem translateFrom,
  5770.         HICoordinateSystem translateTo,
  5771.         Rect* sourceRect,
  5772.         Rect* translatedRect)
  5773. {
  5774.    SOM_ResolveD(this,HIRadioButton,HIObject,TranslateRect)
  5775.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  5776. }
  5777.  
  5778. /* method: StateChanged */
  5779. void   StateChanged(Environment *ev,
  5780.         HIStateChangeCodeCreator selectorCreator,
  5781.         HIStateChangeCode changedCode)
  5782. {
  5783.    SOM_ResolveD(this,HIRadioButton,HIObject,StateChanged)
  5784.     (this,ev,selectorCreator,changedCode);
  5785. }
  5786.  
  5787. /* method: SetClipboardSupportFlags */
  5788. void   SetClipboardSupportFlags(Environment *ev,
  5789.         HIClipboardSupportFlags flags)
  5790. {
  5791.    SOM_ResolveD(this,HIRadioButton,HIObject,SetClipboardSupportFlags)
  5792.     (this,ev,flags);
  5793. }
  5794.  
  5795. /* method: Verify */
  5796. OSStatus   Verify(Environment *ev)
  5797. {
  5798.    return SOM_ResolveD(this,HIRadioButton,HIObject,Verify)
  5799.     (this,ev);
  5800. }
  5801.  
  5802. /* method: somInit */
  5803. void   somInit()
  5804. {
  5805.    SOM_ResolveD(this,HIRadioButton,SOMObject,somInit)
  5806.     (this);
  5807. }
  5808.  
  5809. /* method: somUninit */
  5810. void   somUninit()
  5811. {
  5812.    SOM_ResolveD(this,HIRadioButton,SOMObject,somUninit)
  5813.     (this);
  5814. }
  5815.  
  5816. /* method: somDuplicateReference */
  5817. SOMObject*   somDuplicateReference()
  5818. {
  5819.    return SOM_ResolveD(this,HIRadioButton,SOMObject,somDuplicateReference)
  5820.     (this);
  5821. }
  5822.  
  5823. /* method: somCompareReference */
  5824. boolean   somCompareReference(SOMObject* anObject)
  5825. {
  5826.    return SOM_ResolveD(this,HIRadioButton,SOMObject,somCompareReference)
  5827.     (this,anObject);
  5828. }
  5829.  
  5830. /* method: somRelease */
  5831. SOMObject*   somRelease()
  5832. {
  5833.    return SOM_ResolveD(this,HIRadioButton,SOMObject,somRelease)
  5834.     (this);
  5835. }
  5836.  
  5837. /* method: somFree */
  5838. void   somFree()
  5839. {
  5840.    SOM_ResolveD(this,HIRadioButton,SOMObject,somFree)
  5841.     (this);
  5842. }
  5843.  
  5844. /* method: somCanDelete */
  5845. boolean   somCanDelete()
  5846. {
  5847.    return SOM_ResolveD(this,HIRadioButton,SOMObject,somCanDelete)
  5848.     (this);
  5849. }
  5850.  
  5851. /* method: somGetClass */
  5852. SOMClass*   somGetClass()
  5853. {
  5854.    return SOM_ResolveD(this,HIRadioButton,SOMObject,somGetClass)
  5855.     (this);
  5856. }
  5857.  
  5858. /* method: somGetClassName */
  5859. corbastring   somGetClassName()
  5860. {
  5861.    return SOM_ResolveD(this,HIRadioButton,SOMObject,somGetClassName)
  5862.     (this);
  5863. }
  5864.  
  5865. /* method: somGetSize */
  5866. long   somGetSize()
  5867. {
  5868.    return SOM_ResolveD(this,HIRadioButton,SOMObject,somGetSize)
  5869.     (this);
  5870. }
  5871.  
  5872. /* method: somIsA */
  5873. boolean   somIsA(SOMClass* aClassObj)
  5874. {
  5875.    return SOM_ResolveD(this,HIRadioButton,SOMObject,somIsA)
  5876.     (this,aClassObj);
  5877. }
  5878.  
  5879. /* method: somRespondsTo */
  5880. boolean   somRespondsTo(somId mId)
  5881. {
  5882.    return SOM_ResolveD(this,HIRadioButton,SOMObject,somRespondsTo)
  5883.     (this,mId);
  5884. }
  5885.  
  5886. /* method: somIsInstanceOf */
  5887. boolean   somIsInstanceOf(SOMClass* aClassObj)
  5888. {
  5889.    return SOM_ResolveD(this,HIRadioButton,SOMObject,somIsInstanceOf)
  5890.     (this,aClassObj);
  5891. }
  5892.  
  5893. /* va_list method: somDispatch */
  5894. /* the va_list invocation form */
  5895. boolean   HIRadioButton_somDispatch(somToken* retValue,
  5896.         somId methodId,
  5897.         va_list ap)
  5898. {
  5899.    return SOM_ResolveD(this,HIRadioButton,SOMObject,somDispatch)
  5900.     (this,retValue,methodId,ap);
  5901. }
  5902.  
  5903. /* the varargs invocation form */
  5904. boolean   somDispatch(somToken* retValue,
  5905.         somId methodId,
  5906.         ...)
  5907. {
  5908.    va_list ap;
  5909.    va_start(ap, methodId);
  5910.       boolean __somResult = 
  5911.       (boolean) SOM_ResolveD(this,HIRadioButton,SOMObject,somDispatch)
  5912.     (this,retValue,methodId,ap);
  5913.    va_end(ap);
  5914.    return __somResult;
  5915. }
  5916.  
  5917. /* va_list method: somClassDispatch */
  5918. /* the va_list invocation form */
  5919. boolean   HIRadioButton_somClassDispatch(SOMClass* clsObj,
  5920.         somToken* retValue,
  5921.         somId methodId,
  5922.         va_list ap)
  5923. {
  5924.    return SOM_ResolveD(this,HIRadioButton,SOMObject,somClassDispatch)
  5925.     (this,clsObj,retValue,methodId,ap);
  5926. }
  5927.  
  5928. /* the varargs invocation form */
  5929. boolean   somClassDispatch(SOMClass* clsObj,
  5930.         somToken* retValue,
  5931.         somId methodId,
  5932.         ...)
  5933. {
  5934.    va_list ap;
  5935.    va_start(ap, methodId);
  5936.       boolean __somResult = 
  5937.       (boolean) SOM_ResolveD(this,HIRadioButton,SOMObject,somClassDispatch)
  5938.     (this,clsObj,retValue,methodId,ap);
  5939.    va_end(ap);
  5940.    return __somResult;
  5941. }
  5942.  
  5943. /* method: somCastObj */
  5944. boolean   somCastObj(SOMClass* cls)
  5945. {
  5946.    return SOM_ResolveD(this,HIRadioButton,SOMObject,somCastObj)
  5947.     (this,cls);
  5948. }
  5949.  
  5950. /* method: somResetObj */
  5951. boolean   somResetObj()
  5952. {
  5953.    return SOM_ResolveD(this,HIRadioButton,SOMObject,somResetObj)
  5954.     (this);
  5955. }
  5956.  
  5957. /* method: somPrintSelf */
  5958. SOMObject*   somPrintSelf()
  5959. {
  5960.    return SOM_ResolveD(this,HIRadioButton,SOMObject,somPrintSelf)
  5961.     (this);
  5962. }
  5963.  
  5964. /* method: somDumpSelf */
  5965. void   somDumpSelf(long level)
  5966. {
  5967.    SOM_ResolveD(this,HIRadioButton,SOMObject,somDumpSelf)
  5968.     (this,level);
  5969. }
  5970.  
  5971. /* method: somDumpSelfInt */
  5972. void   somDumpSelfInt(long level)
  5973. {
  5974.    SOM_ResolveD(this,HIRadioButton,SOMObject,somDumpSelfInt)
  5975.     (this,level);
  5976. }
  5977.  
  5978. };   /* HIRadioButton */
  5979.  
  5980.  
  5981.  
  5982. #endif       /* SOM_HIRadioButton_xh */
  5983.  
  5984. #ifndef SOM_HIDisclosureTriangle_xh
  5985. #define SOM_HIDisclosureTriangle_xh
  5986.  
  5987. class HIDisclosureTriangle;
  5988.  
  5989. #define HIDisclosureTriangle_MajorVersion 0
  5990. #define HIDisclosureTriangle_MinorVersion 0
  5991.  
  5992. /* C++ SOM defs */
  5993. #include <somcls.xh>
  5994. #include <somcm.xh>
  5995.  
  5996. /* C++ parent defs */
  5997. #ifndef SOM_HIControl_xh
  5998. #include <HIControls.xh>
  5999. #endif
  6000.  
  6001. #ifndef HIDisclosureTriangle_API
  6002. #define HIDisclosureTriangle_API
  6003. /*
  6004.  * -- The Class API
  6005.  */
  6006.  
  6007. /*
  6008.  * Start of user-defined types:
  6009.  */
  6010.  
  6011. /*
  6012.  * End of user-defined types.
  6013.  */
  6014.  
  6015. #ifdef OLDIBMSOMAPISUPPORT
  6016. #define HIDisclosureTriangleCClassData HIDisclosureTriangleClassData
  6017. #define HIDisclosureTriangleNewClass(major,minor) somNewVersionedClassReference(HIDisclosureTriangle,major,minor)
  6018. #endif
  6019.  
  6020. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  6021. #define HIDisclosureTriangleMetaClass SOMClass
  6022.  
  6023. #if PRAGMA_ALIGN_SUPPORTED
  6024. #  pragma options align=power
  6025. #endif
  6026.  
  6027. /* The API to the HIDisclosureTriangle class object, and the methods it introduces. */
  6028. SOMEXTERN struct HIDisclosureTriangleClassDataStructure {
  6029. #ifdef OLDIBMSOMAPISUPPORT
  6030.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  6031. #else
  6032.     long zero;
  6033. #endif
  6034.     somStaticClassInfo *sci;
  6035.     somDToken        instanceDataToken;
  6036.     long reserved [3];
  6037.     somMToken InitDisclosureTriangle;
  6038.     somMToken IsDisclosed;
  6039. } SOMDLINK HIDisclosureTriangleClassData;
  6040.  
  6041. #if PRAGMA_ALIGN_SUPPORTED
  6042. #  pragma options align=reset
  6043. #endif
  6044.  
  6045. #if !defined(HIDisclosureTriangle_Class_Source) && !defined(SOM_Module_hicontrols_Source)
  6046. #if PRAGMA_IMPORT_SUPPORTED
  6047. #pragma import list HIDisclosureTriangleClassData
  6048. #endif
  6049. #endif
  6050.  
  6051.  
  6052. /*
  6053.  * -- Typedefs for HIDisclosureTriangle Method Procedures
  6054.  */
  6055. SOMEXTERN {
  6056. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_InitDisclosureTriangle)(HIDisclosureTriangle *somSelf, Environment *ev,
  6057.         RefLabel* identifier,
  6058.         HIWindow* window,
  6059.         Point* anchor);
  6060. typedef boolean   (* SOMLINK somTD_HIDisclosureTriangle_IsDisclosed)(HIDisclosureTriangle *somSelf, Environment *ev);
  6061.  
  6062. /*
  6063.  * -- Typedefs for Inherited Methods
  6064.  */
  6065. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_InitControl)(HIDisclosureTriangle *somSelf, Environment *ev,
  6066.         RefLabel* identifier,
  6067.         HIWindow* window,
  6068.         Rect* bounds,
  6069.         SInt32 value,
  6070.         SInt32 minimumValue,
  6071.         SInt32 maximumValue);
  6072. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_SetValue)(HIDisclosureTriangle *somSelf, Environment *ev,
  6073.         SInt32 newValue);
  6074. typedef SInt32   (* SOMLINK somTD_HIDisclosureTriangle_GetValue)(HIDisclosureTriangle *somSelf, Environment *ev);
  6075. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_SetMinimum)(HIDisclosureTriangle *somSelf, Environment *ev,
  6076.         SInt32 newMinimum);
  6077. typedef SInt32   (* SOMLINK somTD_HIDisclosureTriangle_GetMinimum)(HIDisclosureTriangle *somSelf, Environment *ev);
  6078. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_SetMaximum)(HIDisclosureTriangle *somSelf, Environment *ev,
  6079.         SInt32 newMaximum);
  6080. typedef SInt32   (* SOMLINK somTD_HIDisclosureTriangle_GetMaximum)(HIDisclosureTriangle *somSelf, Environment *ev);
  6081. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_SimulateSelection)(HIDisclosureTriangle *somSelf, Environment *ev);
  6082. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIDisclosureTriangle_GetEmbeddingParent)(HIDisclosureTriangle *somSelf, Environment *ev);
  6083. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_InitPanel)(HIDisclosureTriangle *somSelf, Environment *ev,
  6084.         RefLabel* identifier,
  6085.         HIWindow* window,
  6086.         Rect* bounds);
  6087. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_RegisterInterestInAppleEvent)(HIDisclosureTriangle *somSelf, Environment *ev,
  6088.         AEHandlerTableRef table,
  6089.         AEEventClass eventClass,
  6090.         AEEventID eventID,
  6091.         HIEventRoutingType eventRouting);
  6092. typedef boolean   (* SOMLINK somTD_HIDisclosureTriangle_HasValidContent)(HIDisclosureTriangle *somSelf, Environment *ev);
  6093. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_GetDeepCollectionItemData)(HIDisclosureTriangle *somSelf, Environment *ev,
  6094.         CollectionTag tag,
  6095.         SInt32 id,
  6096.         ByteCount sizeAllowed,
  6097.         ByteCount* sizeReturned,
  6098.         void* itemData);
  6099. typedef HIWindow*   (* SOMLINK somTD_HIDisclosureTriangle_GetWindow)(HIDisclosureTriangle *somSelf, Environment *ev);
  6100. typedef CGrafPtr   (* SOMLINK somTD_HIDisclosureTriangle_GetPort)(HIDisclosureTriangle *somSelf, Environment *ev);
  6101. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_GetRefLabel)(HIDisclosureTriangle *somSelf, Environment *ev,
  6102.         RefLabel* identifier);
  6103. typedef Collection   (* SOMLINK somTD_HIDisclosureTriangle_GetCollection)(HIDisclosureTriangle *somSelf, Environment *ev);
  6104. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_Init)(HIDisclosureTriangle *somSelf, Environment *ev,
  6105.         RefLabel* identifier,
  6106.         Rect* boundingRect);
  6107. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_Terminate)(HIDisclosureTriangle *somSelf, Environment *ev);
  6108. typedef HIObject*   (* SOMLINK somTD_HIDisclosureTriangle_Clone)(HIDisclosureTriangle *somSelf, Environment *ev);
  6109. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_Release)(HIDisclosureTriangle *somSelf, Environment *ev);
  6110. typedef ItemCount   (* SOMLINK somTD_HIDisclosureTriangle_GetOwnerCount)(HIDisclosureTriangle *somSelf, Environment *ev);
  6111. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_InitFromAERecord)(HIDisclosureTriangle *somSelf, Environment *ev,
  6112.         AESubDesc* baseInitializerData,
  6113.         AESubDesc* initializerDataForClass,
  6114.         HIAERecordDataFormat dataFormat);
  6115. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_WriteToAERecord)(HIDisclosureTriangle *somSelf, Environment *ev,
  6116.         AERecord* dataForSubclass,
  6117.         AERecord* objectData,
  6118.         HIAERecordDataFormat dataFormat);
  6119. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_CalculateOptimalSize)(HIDisclosureTriangle *somSelf, Environment *ev,
  6120.         SInt16* optimalWidth,
  6121.         SInt16* optimalHeight);
  6122. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_GetBoundingRect)(HIDisclosureTriangle *somSelf, Environment *ev,
  6123.         HICoordinateSystem coordinate,
  6124.         Rect* boundingRect);
  6125. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_SetBoundingRect)(HIDisclosureTriangle *somSelf, Environment *ev,
  6126.         HICoordinateSystem coordinate,
  6127.         Rect* newBoundingRect);
  6128. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_SetPosition)(HIDisclosureTriangle *somSelf, Environment *ev,
  6129.         HICoordinateSystem coordinate,
  6130.         Point* newPosition);
  6131. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_SetSize)(HIDisclosureTriangle *somSelf, Environment *ev,
  6132.         SInt16 width,
  6133.         SInt16 height);
  6134. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_GetUpdateRect)(HIDisclosureTriangle *somSelf, Environment *ev,
  6135.         HICoordinateSystem coordinate,
  6136.         Rect* updateRect);
  6137. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_Enable)(HIDisclosureTriangle *somSelf, Environment *ev);
  6138. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_Disable)(HIDisclosureTriangle *somSelf, Environment *ev);
  6139. typedef boolean   (* SOMLINK somTD_HIDisclosureTriangle_IsEnabled)(HIDisclosureTriangle *somSelf, Environment *ev);
  6140. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_Show)(HIDisclosureTriangle *somSelf, Environment *ev);
  6141. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_Hide)(HIDisclosureTriangle *somSelf, Environment *ev);
  6142. typedef boolean   (* SOMLINK somTD_HIDisclosureTriangle_IsVisible)(HIDisclosureTriangle *somSelf, Environment *ev);
  6143. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_HandleAppleEvent)(HIDisclosureTriangle *somSelf, Environment *ev,
  6144.         AEEventClass eventClass,
  6145.         AEEventID eventID,
  6146.         AppleEvent* theEvent,
  6147.         AppleEvent* reply,
  6148.         AEHandlerTableRef handlerTableRef);
  6149. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_HandleActivate)(HIDisclosureTriangle *somSelf, Environment *ev,
  6150.         AppleEvent* theEvent,
  6151.         AppleEvent* reply,
  6152.         AEHandlerTableRef handlerTableRef);
  6153. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_HandleDeactivate)(HIDisclosureTriangle *somSelf, Environment *ev,
  6154.         AppleEvent* theEvent,
  6155.         AppleEvent* reply,
  6156.         AEHandlerTableRef handlerTableRef);
  6157. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_HandleNavigation)(HIDisclosureTriangle *somSelf, Environment *ev,
  6158.         SInt8 key,
  6159.         SInt8 keyCode,
  6160.         EventModifiers modifiers,
  6161.         AppleEvent* theEvent,
  6162.         AppleEvent* reply,
  6163.         AEHandlerTableRef handlerTableRef);
  6164. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_HandleMouseDownInContent)(HIDisclosureTriangle *somSelf, Environment *ev,
  6165.         Point* portLocalWhere,
  6166.         EventModifiers modifiers,
  6167.         AppleEvent* theEvent,
  6168.         AppleEvent* reply,
  6169.         AEHandlerTableRef handlerTableRef);
  6170. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_HandleMouseMovedInContent)(HIDisclosureTriangle *somSelf, Environment *ev,
  6171.         Point* portLocalWhere,
  6172.         EventModifiers modifiers,
  6173.         AppleEvent* theEvent,
  6174.         AppleEvent* reply,
  6175.         AEHandlerTableRef handlerTableRef);
  6176. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_HandleMouseStoppedMovingInContent)(HIDisclosureTriangle *somSelf, Environment *ev,
  6177.         Point* portLocalWhere,
  6178.         EventModifiers modifiers,
  6179.         AppleEvent* theEvent,
  6180.         AppleEvent* reply,
  6181.         AEHandlerTableRef handlerTableRef);
  6182. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_HandleMouseUpInContent)(HIDisclosureTriangle *somSelf, Environment *ev,
  6183.         Point* portLocalWhere,
  6184.         EventModifiers modifiers,
  6185.         AppleEvent* theEvent,
  6186.         AppleEvent* reply,
  6187.         AEHandlerTableRef handlerTableRef);
  6188. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_TakeUserInputFocus)(HIDisclosureTriangle *somSelf, Environment *ev);
  6189. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_ReleaseUserInputFocus)(HIDisclosureTriangle *somSelf, Environment *ev);
  6190. typedef boolean   (* SOMLINK somTD_HIDisclosureTriangle_HasUserInputFocus)(HIDisclosureTriangle *somSelf, Environment *ev);
  6191. typedef boolean   (* SOMLINK somTD_HIDisclosureTriangle_CanReleaseUserInputFocus)(HIDisclosureTriangle *somSelf, Environment *ev);
  6192. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_SetUserInputFocusFlags)(HIDisclosureTriangle *somSelf, Environment *ev,
  6193.         HIUserInputFocusFlags flags);
  6194. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIDisclosureTriangle_GetUserInputFocusFlags)(HIDisclosureTriangle *somSelf, Environment *ev);
  6195. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_SetTitle)(HIDisclosureTriangle *somSelf, Environment *ev,
  6196.         ConstHIImageRef title,
  6197.         HIAdoptionFlags disposalAdoptionFlags);
  6198. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_GetTitle)(HIDisclosureTriangle *somSelf, Environment *ev,
  6199.         HIImageRef* title);
  6200. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_Draw)(HIDisclosureTriangle *somSelf, Environment *ev,
  6201.         CGrafPtr whichPort,
  6202.         RgnHandle drawRgn);
  6203. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_Erase)(HIDisclosureTriangle *somSelf, Environment *ev,
  6204.         CGrafPtr whichPort,
  6205.         RgnHandle eraseRgn);
  6206. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_Invalidate)(HIDisclosureTriangle *somSelf, Environment *ev);
  6207. typedef HIDrawingMode   (* SOMLINK somTD_HIDisclosureTriangle_GetDrawingMode)(HIDisclosureTriangle *somSelf, Environment *ev);
  6208. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_SetDrawingMode)(HIDisclosureTriangle *somSelf, Environment *ev,
  6209.         HIDrawingMode drawingMode);
  6210. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_SetBackgroundPattern)(HIDisclosureTriangle *somSelf, Environment *ev,
  6211.         PixPatHandle backgroundPattern);
  6212. typedef PixPatHandle   (* SOMLINK somTD_HIDisclosureTriangle_GetBackgroundPattern)(HIDisclosureTriangle *somSelf, Environment *ev);
  6213. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_Cut)(HIDisclosureTriangle *somSelf, Environment *ev);
  6214. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_Copy)(HIDisclosureTriangle *somSelf, Environment *ev);
  6215. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_Paste)(HIDisclosureTriangle *somSelf, Environment *ev);
  6216. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_Clear)(HIDisclosureTriangle *somSelf, Environment *ev);
  6217. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIDisclosureTriangle_GetClipboardSupportFlags)(HIDisclosureTriangle *somSelf, Environment *ev);
  6218. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_AddStateChangeCallback)(HIDisclosureTriangle *somSelf, Environment *ev,
  6219.         HIStateChangeCallbackProcPtr changedStateCallback,
  6220.         HIStateChangeCallbackRef* newCallbackRef);
  6221. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_RemoveStateChangeCallback)(HIDisclosureTriangle *somSelf, Environment *ev,
  6222.         HIStateChangeCallbackRef callbackRefToRemove);
  6223. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_GetHIObjectFromRefLabel)(Environment *ev,
  6224.         RefLabel* identifier,
  6225.         ItemCount requestedObjects,
  6226.         ItemCount* totalObjects,
  6227.         HIObject** theObjects);
  6228. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_GetNewHIObject)(Environment *ev,
  6229.         AESubDesc* objectInitializer,
  6230.         HIObject** newObject);
  6231. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_GetNewHIObjectFromResource)(Environment *ev,
  6232.         ResID objectInitializerResourceID,
  6233.         HIObject** newObject);
  6234. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_DrawContent)(HIDisclosureTriangle *somSelf, Environment *ev,
  6235.         CGrafPtr whichPort,
  6236.         RgnHandle drawRgn);
  6237. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_EraseContent)(HIDisclosureTriangle *somSelf, Environment *ev,
  6238.         CGrafPtr whichPort,
  6239.         RgnHandle regionToErase);
  6240. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_TranslatePoint)(HIDisclosureTriangle *somSelf, Environment *ev,
  6241.         HICoordinateSystem translateFrom,
  6242.         HICoordinateSystem translateTo,
  6243.         Point* sourcePoint,
  6244.         Point* translatedPoint);
  6245. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_TranslateRect)(HIDisclosureTriangle *somSelf, Environment *ev,
  6246.         HICoordinateSystem translateFrom,
  6247.         HICoordinateSystem translateTo,
  6248.         Rect* sourceRect,
  6249.         Rect* translatedRect);
  6250. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_StateChanged)(HIDisclosureTriangle *somSelf, Environment *ev,
  6251.         HIStateChangeCodeCreator selectorCreator,
  6252.         HIStateChangeCode changedCode);
  6253. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_SetClipboardSupportFlags)(HIDisclosureTriangle *somSelf, Environment *ev,
  6254.         HIClipboardSupportFlags flags);
  6255. typedef OSStatus   (* SOMLINK somTD_HIDisclosureTriangle_Verify)(HIDisclosureTriangle *somSelf, Environment *ev);
  6256. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_somInit)(HIDisclosureTriangle *somSelf);
  6257. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_somUninit)(HIDisclosureTriangle *somSelf);
  6258. typedef SOMObject*   (* SOMLINK somTD_HIDisclosureTriangle_somDuplicateReference)(HIDisclosureTriangle *somSelf);
  6259. typedef boolean   (* SOMLINK somTD_HIDisclosureTriangle_somCompareReference)(HIDisclosureTriangle *somSelf,
  6260.         SOMObject* anObject);
  6261. typedef SOMObject*   (* SOMLINK somTD_HIDisclosureTriangle_somRelease)(HIDisclosureTriangle *somSelf);
  6262. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_somFree)(HIDisclosureTriangle *somSelf);
  6263. typedef boolean   (* SOMLINK somTD_HIDisclosureTriangle_somCanDelete)(HIDisclosureTriangle *somSelf);
  6264. typedef SOMClass*   (* SOMLINK somTD_HIDisclosureTriangle_somGetClass)(HIDisclosureTriangle *somSelf);
  6265. typedef corbastring   (* SOMLINK somTD_HIDisclosureTriangle_somGetClassName)(HIDisclosureTriangle *somSelf);
  6266. typedef long   (* SOMLINK somTD_HIDisclosureTriangle_somGetSize)(HIDisclosureTriangle *somSelf);
  6267. typedef boolean   (* SOMLINK somTD_HIDisclosureTriangle_somIsA)(HIDisclosureTriangle *somSelf,
  6268.         SOMClass* aClassObj);
  6269. typedef boolean   (* SOMLINK somTD_HIDisclosureTriangle_somRespondsTo)(HIDisclosureTriangle *somSelf,
  6270.         somId mId);
  6271. typedef boolean   (* SOMLINK somTD_HIDisclosureTriangle_somIsInstanceOf)(HIDisclosureTriangle *somSelf,
  6272.         SOMClass* aClassObj);
  6273. typedef boolean   (* SOMLINK somTD_HIDisclosureTriangle_somDispatch)(HIDisclosureTriangle *somSelf,
  6274.         somToken* retValue,
  6275.         somId methodId,
  6276.         va_list ap);
  6277. typedef boolean   (* SOMLINK somTD_HIDisclosureTriangle_somClassDispatch)(HIDisclosureTriangle *somSelf,
  6278.         SOMClass* clsObj,
  6279.         somToken* retValue,
  6280.         somId methodId,
  6281.         va_list ap);
  6282. typedef boolean   (* SOMLINK somTD_HIDisclosureTriangle_somCastObj)(HIDisclosureTriangle *somSelf,
  6283.         SOMClass* cls);
  6284. typedef boolean   (* SOMLINK somTD_HIDisclosureTriangle_somResetObj)(HIDisclosureTriangle *somSelf);
  6285. typedef SOMObject*   (* SOMLINK somTD_HIDisclosureTriangle_somPrintSelf)(HIDisclosureTriangle *somSelf);
  6286. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_somDumpSelf)(HIDisclosureTriangle *somSelf,
  6287.         long level);
  6288. typedef void   (* SOMLINK somTD_HIDisclosureTriangle_somDumpSelfInt)(HIDisclosureTriangle *somSelf,
  6289.         long level);
  6290. }
  6291.  
  6292. #endif /* HIDisclosureTriangle_API */
  6293.  
  6294.  
  6295. /*
  6296.  * -- This emitter treats Method Tokens as Thunks by default.
  6297.  * -- Use the sc modifier "nothunks" to change this default
  6298.  */
  6299. #undef somresolve_
  6300. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  6301.  
  6302. /*
  6303.  * -- The C++ Wrapper Class for HIDisclosureTriangle
  6304.  */
  6305. class HIDisclosureTriangle : public HIControl
  6306. {
  6307. public:
  6308.  
  6309. // HIDisclosureTriangle::new registers use of the class object, and then uses somNew
  6310. // to allocate memory and load the object method table pointer. 
  6311. void *operator new(size_t size)
  6312. {
  6313.     SOM_IgnoreWarning(size);
  6314.     // Allocate memory using the default allocator for HIDisclosureTriangle, and
  6315.     // clear mem & set method table pointer, call basic initialization
  6316.     return (void*) somNewObject(HIDisclosureTriangle);
  6317. }
  6318.  
  6319. // HIDisclosureTriangle::delete uses the default deallocator for the object's class.
  6320. void operator delete(void * obj)
  6321. {
  6322.     if (obj) {
  6323.         SOM_Resolve(obj,SOMObject,somFree)
  6324.            ( (SOMObject*) obj );
  6325.     }
  6326. }
  6327.  
  6328. /* method: InitDisclosureTriangle */
  6329. OSStatus   InitDisclosureTriangle(Environment *ev,
  6330.         RefLabel* identifier,
  6331.         HIWindow* window,
  6332.         Point* anchor)
  6333. {
  6334.    return SOM_ResolveD(this,HIDisclosureTriangle,HIDisclosureTriangle,InitDisclosureTriangle)
  6335.     (this,ev,identifier,window,anchor);
  6336. }
  6337.  
  6338. /* method: IsDisclosed */
  6339. boolean   IsDisclosed(Environment *ev)
  6340. {
  6341.    return SOM_ResolveD(this,HIDisclosureTriangle,HIDisclosureTriangle,IsDisclosed)
  6342.     (this,ev);
  6343. }
  6344.  
  6345.  
  6346. /*
  6347.  * -- Inherited methods
  6348.  */
  6349. /* method: InitControl */
  6350. OSStatus   InitControl(Environment *ev,
  6351.         RefLabel* identifier,
  6352.         HIWindow* window,
  6353.         Rect* bounds,
  6354.         SInt32 value,
  6355.         SInt32 minimumValue,
  6356.         SInt32 maximumValue)
  6357. {
  6358.    return SOM_ResolveD(this,HIDisclosureTriangle,HIControl,InitControl)
  6359.     (this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
  6360. }
  6361.  
  6362. /* method: SetValue */
  6363. void   SetValue(Environment *ev,
  6364.         SInt32 newValue)
  6365. {
  6366.    SOM_ResolveD(this,HIDisclosureTriangle,HIControl,SetValue)
  6367.     (this,ev,newValue);
  6368. }
  6369.  
  6370. /* method: GetValue */
  6371. SInt32   GetValue(Environment *ev)
  6372. {
  6373.    return SOM_ResolveD(this,HIDisclosureTriangle,HIControl,GetValue)
  6374.     (this,ev);
  6375. }
  6376.  
  6377. /* method: SetMinimum */
  6378. void   SetMinimum(Environment *ev,
  6379.         SInt32 newMinimum)
  6380. {
  6381.    SOM_ResolveD(this,HIDisclosureTriangle,HIControl,SetMinimum)
  6382.     (this,ev,newMinimum);
  6383. }
  6384.  
  6385. /* method: GetMinimum */
  6386. SInt32   GetMinimum(Environment *ev)
  6387. {
  6388.    return SOM_ResolveD(this,HIDisclosureTriangle,HIControl,GetMinimum)
  6389.     (this,ev);
  6390. }
  6391.  
  6392. /* method: SetMaximum */
  6393. void   SetMaximum(Environment *ev,
  6394.         SInt32 newMaximum)
  6395. {
  6396.    SOM_ResolveD(this,HIDisclosureTriangle,HIControl,SetMaximum)
  6397.     (this,ev,newMaximum);
  6398. }
  6399.  
  6400. /* method: GetMaximum */
  6401. SInt32   GetMaximum(Environment *ev)
  6402. {
  6403.    return SOM_ResolveD(this,HIDisclosureTriangle,HIControl,GetMaximum)
  6404.     (this,ev);
  6405. }
  6406.  
  6407. /* method: SimulateSelection */
  6408. void   SimulateSelection(Environment *ev)
  6409. {
  6410.    SOM_ResolveD(this,HIDisclosureTriangle,HIControl,SimulateSelection)
  6411.     (this,ev);
  6412. }
  6413.  
  6414. /* method: GetEmbeddingParent */
  6415. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  6416. {
  6417.    return SOM_ResolveD(this,HIDisclosureTriangle,HIPanel,GetEmbeddingParent)
  6418.     (this,ev);
  6419. }
  6420.  
  6421. /* method: InitPanel */
  6422. OSStatus   InitPanel(Environment *ev,
  6423.         RefLabel* identifier,
  6424.         HIWindow* window,
  6425.         Rect* bounds)
  6426. {
  6427.    return SOM_ResolveD(this,HIDisclosureTriangle,HIPanel,InitPanel)
  6428.     (this,ev,identifier,window,bounds);
  6429. }
  6430.  
  6431. /* method: RegisterInterestInAppleEvent */
  6432. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  6433.         AEHandlerTableRef table,
  6434.         AEEventClass eventClass,
  6435.         AEEventID eventID,
  6436.         HIEventRoutingType eventRouting)
  6437. {
  6438.    return SOM_ResolveD(this,HIDisclosureTriangle,HIPanel,RegisterInterestInAppleEvent)
  6439.     (this,ev,table,eventClass,eventID,eventRouting);
  6440. }
  6441.  
  6442. /* method: HasValidContent */
  6443. boolean   HasValidContent(Environment *ev)
  6444. {
  6445.    return SOM_ResolveD(this,HIDisclosureTriangle,HIPanel,HasValidContent)
  6446.     (this,ev);
  6447. }
  6448.  
  6449. /* method: GetDeepCollectionItemData */
  6450. OSStatus   GetDeepCollectionItemData(Environment *ev,
  6451.         CollectionTag tag,
  6452.         SInt32 id,
  6453.         ByteCount sizeAllowed,
  6454.         ByteCount* sizeReturned,
  6455.         void* itemData)
  6456. {
  6457.    return SOM_ResolveD(this,HIDisclosureTriangle,HIPanel,GetDeepCollectionItemData)
  6458.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  6459. }
  6460.  
  6461. /* method: GetWindow */
  6462. HIWindow*   GetWindow(Environment *ev)
  6463. {
  6464.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetWindow)
  6465.     (this,ev);
  6466. }
  6467.  
  6468. /* method: GetPort */
  6469. CGrafPtr   GetPort(Environment *ev)
  6470. {
  6471.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetPort)
  6472.     (this,ev);
  6473. }
  6474.  
  6475. /* method: GetRefLabel */
  6476. void   GetRefLabel(Environment *ev,
  6477.         RefLabel* identifier)
  6478. {
  6479.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetRefLabel)
  6480.     (this,ev,identifier);
  6481. }
  6482.  
  6483. /* method: GetCollection */
  6484. Collection   GetCollection(Environment *ev)
  6485. {
  6486.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetCollection)
  6487.     (this,ev);
  6488. }
  6489.  
  6490. /* method: Init */
  6491. OSStatus   Init(Environment *ev,
  6492.         RefLabel* identifier,
  6493.         Rect* boundingRect)
  6494. {
  6495.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Init)
  6496.     (this,ev,identifier,boundingRect);
  6497. }
  6498.  
  6499. /* method: Terminate */
  6500. void   Terminate(Environment *ev)
  6501. {
  6502.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Terminate)
  6503.     (this,ev);
  6504. }
  6505.  
  6506. /* method: Clone */
  6507. HIObject*   Clone(Environment *ev)
  6508. {
  6509.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Clone)
  6510.     (this,ev);
  6511. }
  6512.  
  6513. /* method: Release */
  6514. void   Release(Environment *ev)
  6515. {
  6516.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Release)
  6517.     (this,ev);
  6518. }
  6519.  
  6520. /* method: GetOwnerCount */
  6521. ItemCount   GetOwnerCount(Environment *ev)
  6522. {
  6523.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetOwnerCount)
  6524.     (this,ev);
  6525. }
  6526.  
  6527. /* method: InitFromAERecord */
  6528. OSStatus   InitFromAERecord(Environment *ev,
  6529.         AESubDesc* baseInitializerData,
  6530.         AESubDesc* initializerDataForClass,
  6531.         HIAERecordDataFormat dataFormat)
  6532. {
  6533.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,InitFromAERecord)
  6534.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  6535. }
  6536.  
  6537. /* method: WriteToAERecord */
  6538. OSStatus   WriteToAERecord(Environment *ev,
  6539.         AERecord* dataForSubclass,
  6540.         AERecord* objectData,
  6541.         HIAERecordDataFormat dataFormat)
  6542. {
  6543.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,WriteToAERecord)
  6544.     (this,ev,dataForSubclass,objectData,dataFormat);
  6545. }
  6546.  
  6547. /* method: CalculateOptimalSize */
  6548. void   CalculateOptimalSize(Environment *ev,
  6549.         SInt16* optimalWidth,
  6550.         SInt16* optimalHeight)
  6551. {
  6552.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,CalculateOptimalSize)
  6553.     (this,ev,optimalWidth,optimalHeight);
  6554. }
  6555.  
  6556. /* method: GetBoundingRect */
  6557. void   GetBoundingRect(Environment *ev,
  6558.         HICoordinateSystem coordinate,
  6559.         Rect* boundingRect)
  6560. {
  6561.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetBoundingRect)
  6562.     (this,ev,coordinate,boundingRect);
  6563. }
  6564.  
  6565. /* method: SetBoundingRect */
  6566. void   SetBoundingRect(Environment *ev,
  6567.         HICoordinateSystem coordinate,
  6568.         Rect* newBoundingRect)
  6569. {
  6570.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,SetBoundingRect)
  6571.     (this,ev,coordinate,newBoundingRect);
  6572. }
  6573.  
  6574. /* method: SetPosition */
  6575. void   SetPosition(Environment *ev,
  6576.         HICoordinateSystem coordinate,
  6577.         Point* newPosition)
  6578. {
  6579.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,SetPosition)
  6580.     (this,ev,coordinate,newPosition);
  6581. }
  6582.  
  6583. /* method: SetSize */
  6584. void   SetSize(Environment *ev,
  6585.         SInt16 width,
  6586.         SInt16 height)
  6587. {
  6588.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,SetSize)
  6589.     (this,ev,width,height);
  6590. }
  6591.  
  6592. /* method: GetUpdateRect */
  6593. void   GetUpdateRect(Environment *ev,
  6594.         HICoordinateSystem coordinate,
  6595.         Rect* updateRect)
  6596. {
  6597.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetUpdateRect)
  6598.     (this,ev,coordinate,updateRect);
  6599. }
  6600.  
  6601. /* method: Enable */
  6602. void   Enable(Environment *ev)
  6603. {
  6604.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Enable)
  6605.     (this,ev);
  6606. }
  6607.  
  6608. /* method: Disable */
  6609. void   Disable(Environment *ev)
  6610. {
  6611.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Disable)
  6612.     (this,ev);
  6613. }
  6614.  
  6615. /* method: IsEnabled */
  6616. boolean   IsEnabled(Environment *ev)
  6617. {
  6618.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,IsEnabled)
  6619.     (this,ev);
  6620. }
  6621.  
  6622. /* method: Show */
  6623. void   Show(Environment *ev)
  6624. {
  6625.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Show)
  6626.     (this,ev);
  6627. }
  6628.  
  6629. /* method: Hide */
  6630. void   Hide(Environment *ev)
  6631. {
  6632.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Hide)
  6633.     (this,ev);
  6634. }
  6635.  
  6636. /* method: IsVisible */
  6637. boolean   IsVisible(Environment *ev)
  6638. {
  6639.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,IsVisible)
  6640.     (this,ev);
  6641. }
  6642.  
  6643. /* method: HandleAppleEvent */
  6644. OSStatus   HandleAppleEvent(Environment *ev,
  6645.         AEEventClass eventClass,
  6646.         AEEventID eventID,
  6647.         AppleEvent* theEvent,
  6648.         AppleEvent* reply,
  6649.         AEHandlerTableRef handlerTableRef)
  6650. {
  6651.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HandleAppleEvent)
  6652.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  6653. }
  6654.  
  6655. /* method: HandleActivate */
  6656. OSStatus   HandleActivate(Environment *ev,
  6657.         AppleEvent* theEvent,
  6658.         AppleEvent* reply,
  6659.         AEHandlerTableRef handlerTableRef)
  6660. {
  6661.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HandleActivate)
  6662.     (this,ev,theEvent,reply,handlerTableRef);
  6663. }
  6664.  
  6665. /* method: HandleDeactivate */
  6666. OSStatus   HandleDeactivate(Environment *ev,
  6667.         AppleEvent* theEvent,
  6668.         AppleEvent* reply,
  6669.         AEHandlerTableRef handlerTableRef)
  6670. {
  6671.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HandleDeactivate)
  6672.     (this,ev,theEvent,reply,handlerTableRef);
  6673. }
  6674.  
  6675. /* method: HandleNavigation */
  6676. OSStatus   HandleNavigation(Environment *ev,
  6677.         SInt8 key,
  6678.         SInt8 keyCode,
  6679.         EventModifiers modifiers,
  6680.         AppleEvent* theEvent,
  6681.         AppleEvent* reply,
  6682.         AEHandlerTableRef handlerTableRef)
  6683. {
  6684.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HandleNavigation)
  6685.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  6686. }
  6687.  
  6688. /* method: HandleMouseDownInContent */
  6689. OSStatus   HandleMouseDownInContent(Environment *ev,
  6690.         Point* portLocalWhere,
  6691.         EventModifiers modifiers,
  6692.         AppleEvent* theEvent,
  6693.         AppleEvent* reply,
  6694.         AEHandlerTableRef handlerTableRef)
  6695. {
  6696.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HandleMouseDownInContent)
  6697.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  6698. }
  6699.  
  6700. /* method: HandleMouseMovedInContent */
  6701. OSStatus   HandleMouseMovedInContent(Environment *ev,
  6702.         Point* portLocalWhere,
  6703.         EventModifiers modifiers,
  6704.         AppleEvent* theEvent,
  6705.         AppleEvent* reply,
  6706.         AEHandlerTableRef handlerTableRef)
  6707. {
  6708.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HandleMouseMovedInContent)
  6709.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  6710. }
  6711.  
  6712. /* method: HandleMouseStoppedMovingInContent */
  6713. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  6714.         Point* portLocalWhere,
  6715.         EventModifiers modifiers,
  6716.         AppleEvent* theEvent,
  6717.         AppleEvent* reply,
  6718.         AEHandlerTableRef handlerTableRef)
  6719. {
  6720.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HandleMouseStoppedMovingInContent)
  6721.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  6722. }
  6723.  
  6724. /* method: HandleMouseUpInContent */
  6725. OSStatus   HandleMouseUpInContent(Environment *ev,
  6726.         Point* portLocalWhere,
  6727.         EventModifiers modifiers,
  6728.         AppleEvent* theEvent,
  6729.         AppleEvent* reply,
  6730.         AEHandlerTableRef handlerTableRef)
  6731. {
  6732.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HandleMouseUpInContent)
  6733.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  6734. }
  6735.  
  6736. /* method: TakeUserInputFocus */
  6737. void   TakeUserInputFocus(Environment *ev)
  6738. {
  6739.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,TakeUserInputFocus)
  6740.     (this,ev);
  6741. }
  6742.  
  6743. /* method: ReleaseUserInputFocus */
  6744. void   ReleaseUserInputFocus(Environment *ev)
  6745. {
  6746.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,ReleaseUserInputFocus)
  6747.     (this,ev);
  6748. }
  6749.  
  6750. /* method: HasUserInputFocus */
  6751. boolean   HasUserInputFocus(Environment *ev)
  6752. {
  6753.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,HasUserInputFocus)
  6754.     (this,ev);
  6755. }
  6756.  
  6757. /* method: CanReleaseUserInputFocus */
  6758. boolean   CanReleaseUserInputFocus(Environment *ev)
  6759. {
  6760.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,CanReleaseUserInputFocus)
  6761.     (this,ev);
  6762. }
  6763.  
  6764. /* method: SetUserInputFocusFlags */
  6765. void   SetUserInputFocusFlags(Environment *ev,
  6766.         HIUserInputFocusFlags flags)
  6767. {
  6768.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,SetUserInputFocusFlags)
  6769.     (this,ev,flags);
  6770. }
  6771.  
  6772. /* method: GetUserInputFocusFlags */
  6773. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  6774. {
  6775.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetUserInputFocusFlags)
  6776.     (this,ev);
  6777. }
  6778.  
  6779. /* method: SetTitle */
  6780. OSStatus   SetTitle(Environment *ev,
  6781.         ConstHIImageRef title,
  6782.         HIAdoptionFlags disposalAdoptionFlags)
  6783. {
  6784.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,SetTitle)
  6785.     (this,ev,title,disposalAdoptionFlags);
  6786. }
  6787.  
  6788. /* method: GetTitle */
  6789. OSStatus   GetTitle(Environment *ev,
  6790.         HIImageRef* title)
  6791. {
  6792.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetTitle)
  6793.     (this,ev,title);
  6794. }
  6795.  
  6796. /* method: Draw */
  6797. void   Draw(Environment *ev,
  6798.         CGrafPtr whichPort,
  6799.         RgnHandle drawRgn)
  6800. {
  6801.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Draw)
  6802.     (this,ev,whichPort,drawRgn);
  6803. }
  6804.  
  6805. /* method: Erase */
  6806. void   Erase(Environment *ev,
  6807.         CGrafPtr whichPort,
  6808.         RgnHandle eraseRgn)
  6809. {
  6810.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Erase)
  6811.     (this,ev,whichPort,eraseRgn);
  6812. }
  6813.  
  6814. /* method: Invalidate */
  6815. void   Invalidate(Environment *ev)
  6816. {
  6817.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Invalidate)
  6818.     (this,ev);
  6819. }
  6820.  
  6821. /* method: GetDrawingMode */
  6822. HIDrawingMode   GetDrawingMode(Environment *ev)
  6823. {
  6824.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetDrawingMode)
  6825.     (this,ev);
  6826. }
  6827.  
  6828. /* method: SetDrawingMode */
  6829. void   SetDrawingMode(Environment *ev,
  6830.         HIDrawingMode drawingMode)
  6831. {
  6832.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,SetDrawingMode)
  6833.     (this,ev,drawingMode);
  6834. }
  6835.  
  6836. /* method: SetBackgroundPattern */
  6837. void   SetBackgroundPattern(Environment *ev,
  6838.         PixPatHandle backgroundPattern)
  6839. {
  6840.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,SetBackgroundPattern)
  6841.     (this,ev,backgroundPattern);
  6842. }
  6843.  
  6844. /* method: GetBackgroundPattern */
  6845. PixPatHandle   GetBackgroundPattern(Environment *ev)
  6846. {
  6847.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetBackgroundPattern)
  6848.     (this,ev);
  6849. }
  6850.  
  6851. /* method: Cut */
  6852. void   Cut(Environment *ev)
  6853. {
  6854.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Cut)
  6855.     (this,ev);
  6856. }
  6857.  
  6858. /* method: Copy */
  6859. void   Copy(Environment *ev)
  6860. {
  6861.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Copy)
  6862.     (this,ev);
  6863. }
  6864.  
  6865. /* method: Paste */
  6866. void   Paste(Environment *ev)
  6867. {
  6868.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Paste)
  6869.     (this,ev);
  6870. }
  6871.  
  6872. /* method: Clear */
  6873. void   Clear(Environment *ev)
  6874. {
  6875.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Clear)
  6876.     (this,ev);
  6877. }
  6878.  
  6879. /* method: GetClipboardSupportFlags */
  6880. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  6881. {
  6882.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,GetClipboardSupportFlags)
  6883.     (this,ev);
  6884. }
  6885.  
  6886. /* method: AddStateChangeCallback */
  6887. OSStatus   AddStateChangeCallback(Environment *ev,
  6888.         HIStateChangeCallbackProcPtr changedStateCallback,
  6889.         HIStateChangeCallbackRef* newCallbackRef)
  6890. {
  6891.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,AddStateChangeCallback)
  6892.     (this,ev,changedStateCallback,newCallbackRef);
  6893. }
  6894.  
  6895. /* method: RemoveStateChangeCallback */
  6896. OSStatus   RemoveStateChangeCallback(Environment *ev,
  6897.         HIStateChangeCallbackRef callbackRefToRemove)
  6898. {
  6899.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,RemoveStateChangeCallback)
  6900.     (this,ev,callbackRefToRemove);
  6901. }
  6902.  
  6903. /* noself procedure: GetHIObjectFromRefLabel */
  6904. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  6905.         RefLabel* identifier,
  6906.         ItemCount requestedObjects,
  6907.         ItemCount* totalObjects,
  6908.         HIObject** theObjects)
  6909. {
  6910. return ((somTD_HIDisclosureTriangle_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  6911.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  6912. }
  6913.  
  6914. /* noself procedure: GetNewHIObject */
  6915. static OSStatus   GetNewHIObject(Environment *ev,
  6916.         AESubDesc* objectInitializer,
  6917.         HIObject** newObject)
  6918. {
  6919. return ((somTD_HIDisclosureTriangle_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  6920.     (ev,objectInitializer,newObject);
  6921. }
  6922.  
  6923. /* noself procedure: GetNewHIObjectFromResource */
  6924. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  6925.         ResID objectInitializerResourceID,
  6926.         HIObject** newObject)
  6927. {
  6928. return ((somTD_HIDisclosureTriangle_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  6929.     (ev,objectInitializerResourceID,newObject);
  6930. }
  6931.  
  6932. /* method: DrawContent */
  6933. void   DrawContent(Environment *ev,
  6934.         CGrafPtr whichPort,
  6935.         RgnHandle drawRgn)
  6936. {
  6937.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,DrawContent)
  6938.     (this,ev,whichPort,drawRgn);
  6939. }
  6940.  
  6941. /* method: EraseContent */
  6942. void   EraseContent(Environment *ev,
  6943.         CGrafPtr whichPort,
  6944.         RgnHandle regionToErase)
  6945. {
  6946.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,EraseContent)
  6947.     (this,ev,whichPort,regionToErase);
  6948. }
  6949.  
  6950. /* method: TranslatePoint */
  6951. void   TranslatePoint(Environment *ev,
  6952.         HICoordinateSystem translateFrom,
  6953.         HICoordinateSystem translateTo,
  6954.         Point* sourcePoint,
  6955.         Point* translatedPoint)
  6956. {
  6957.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,TranslatePoint)
  6958.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  6959. }
  6960.  
  6961. /* method: TranslateRect */
  6962. void   TranslateRect(Environment *ev,
  6963.         HICoordinateSystem translateFrom,
  6964.         HICoordinateSystem translateTo,
  6965.         Rect* sourceRect,
  6966.         Rect* translatedRect)
  6967. {
  6968.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,TranslateRect)
  6969.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  6970. }
  6971.  
  6972. /* method: StateChanged */
  6973. void   StateChanged(Environment *ev,
  6974.         HIStateChangeCodeCreator selectorCreator,
  6975.         HIStateChangeCode changedCode)
  6976. {
  6977.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,StateChanged)
  6978.     (this,ev,selectorCreator,changedCode);
  6979. }
  6980.  
  6981. /* method: SetClipboardSupportFlags */
  6982. void   SetClipboardSupportFlags(Environment *ev,
  6983.         HIClipboardSupportFlags flags)
  6984. {
  6985.    SOM_ResolveD(this,HIDisclosureTriangle,HIObject,SetClipboardSupportFlags)
  6986.     (this,ev,flags);
  6987. }
  6988.  
  6989. /* method: Verify */
  6990. OSStatus   Verify(Environment *ev)
  6991. {
  6992.    return SOM_ResolveD(this,HIDisclosureTriangle,HIObject,Verify)
  6993.     (this,ev);
  6994. }
  6995.  
  6996. /* method: somInit */
  6997. void   somInit()
  6998. {
  6999.    SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somInit)
  7000.     (this);
  7001. }
  7002.  
  7003. /* method: somUninit */
  7004. void   somUninit()
  7005. {
  7006.    SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somUninit)
  7007.     (this);
  7008. }
  7009.  
  7010. /* method: somDuplicateReference */
  7011. SOMObject*   somDuplicateReference()
  7012. {
  7013.    return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somDuplicateReference)
  7014.     (this);
  7015. }
  7016.  
  7017. /* method: somCompareReference */
  7018. boolean   somCompareReference(SOMObject* anObject)
  7019. {
  7020.    return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somCompareReference)
  7021.     (this,anObject);
  7022. }
  7023.  
  7024. /* method: somRelease */
  7025. SOMObject*   somRelease()
  7026. {
  7027.    return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somRelease)
  7028.     (this);
  7029. }
  7030.  
  7031. /* method: somFree */
  7032. void   somFree()
  7033. {
  7034.    SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somFree)
  7035.     (this);
  7036. }
  7037.  
  7038. /* method: somCanDelete */
  7039. boolean   somCanDelete()
  7040. {
  7041.    return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somCanDelete)
  7042.     (this);
  7043. }
  7044.  
  7045. /* method: somGetClass */
  7046. SOMClass*   somGetClass()
  7047. {
  7048.    return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somGetClass)
  7049.     (this);
  7050. }
  7051.  
  7052. /* method: somGetClassName */
  7053. corbastring   somGetClassName()
  7054. {
  7055.    return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somGetClassName)
  7056.     (this);
  7057. }
  7058.  
  7059. /* method: somGetSize */
  7060. long   somGetSize()
  7061. {
  7062.    return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somGetSize)
  7063.     (this);
  7064. }
  7065.  
  7066. /* method: somIsA */
  7067. boolean   somIsA(SOMClass* aClassObj)
  7068. {
  7069.    return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somIsA)
  7070.     (this,aClassObj);
  7071. }
  7072.  
  7073. /* method: somRespondsTo */
  7074. boolean   somRespondsTo(somId mId)
  7075. {
  7076.    return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somRespondsTo)
  7077.     (this,mId);
  7078. }
  7079.  
  7080. /* method: somIsInstanceOf */
  7081. boolean   somIsInstanceOf(SOMClass* aClassObj)
  7082. {
  7083.    return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somIsInstanceOf)
  7084.     (this,aClassObj);
  7085. }
  7086.  
  7087. /* va_list method: somDispatch */
  7088. /* the va_list invocation form */
  7089. boolean   HIDisclosureTriangle_somDispatch(somToken* retValue,
  7090.         somId methodId,
  7091.         va_list ap)
  7092. {
  7093.    return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somDispatch)
  7094.     (this,retValue,methodId,ap);
  7095. }
  7096.  
  7097. /* the varargs invocation form */
  7098. boolean   somDispatch(somToken* retValue,
  7099.         somId methodId,
  7100.         ...)
  7101. {
  7102.    va_list ap;
  7103.    va_start(ap, methodId);
  7104.       boolean __somResult = 
  7105.       (boolean) SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somDispatch)
  7106.     (this,retValue,methodId,ap);
  7107.    va_end(ap);
  7108.    return __somResult;
  7109. }
  7110.  
  7111. /* va_list method: somClassDispatch */
  7112. /* the va_list invocation form */
  7113. boolean   HIDisclosureTriangle_somClassDispatch(SOMClass* clsObj,
  7114.         somToken* retValue,
  7115.         somId methodId,
  7116.         va_list ap)
  7117. {
  7118.    return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somClassDispatch)
  7119.     (this,clsObj,retValue,methodId,ap);
  7120. }
  7121.  
  7122. /* the varargs invocation form */
  7123. boolean   somClassDispatch(SOMClass* clsObj,
  7124.         somToken* retValue,
  7125.         somId methodId,
  7126.         ...)
  7127. {
  7128.    va_list ap;
  7129.    va_start(ap, methodId);
  7130.       boolean __somResult = 
  7131.       (boolean) SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somClassDispatch)
  7132.     (this,clsObj,retValue,methodId,ap);
  7133.    va_end(ap);
  7134.    return __somResult;
  7135. }
  7136.  
  7137. /* method: somCastObj */
  7138. boolean   somCastObj(SOMClass* cls)
  7139. {
  7140.    return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somCastObj)
  7141.     (this,cls);
  7142. }
  7143.  
  7144. /* method: somResetObj */
  7145. boolean   somResetObj()
  7146. {
  7147.    return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somResetObj)
  7148.     (this);
  7149. }
  7150.  
  7151. /* method: somPrintSelf */
  7152. SOMObject*   somPrintSelf()
  7153. {
  7154.    return SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somPrintSelf)
  7155.     (this);
  7156. }
  7157.  
  7158. /* method: somDumpSelf */
  7159. void   somDumpSelf(long level)
  7160. {
  7161.    SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somDumpSelf)
  7162.     (this,level);
  7163. }
  7164.  
  7165. /* method: somDumpSelfInt */
  7166. void   somDumpSelfInt(long level)
  7167. {
  7168.    SOM_ResolveD(this,HIDisclosureTriangle,SOMObject,somDumpSelfInt)
  7169.     (this,level);
  7170. }
  7171.  
  7172. };   /* HIDisclosureTriangle */
  7173.  
  7174.  
  7175.  
  7176. #endif       /* SOM_HIDisclosureTriangle_xh */
  7177.  
  7178. #ifndef SOM_HIScrollBar_xh
  7179. #define SOM_HIScrollBar_xh
  7180.  
  7181. class HIScrollBar;
  7182.  
  7183. #define HIScrollBar_MajorVersion 0
  7184. #define HIScrollBar_MinorVersion 0
  7185.  
  7186. /* C++ SOM defs */
  7187. #include <somcls.xh>
  7188. #include <somcm.xh>
  7189.  
  7190. /* C++ parent defs */
  7191. #ifndef SOM_HIControl_xh
  7192. #include <HIControls.xh>
  7193. #endif
  7194.  
  7195. #ifndef HIScrollBar_API
  7196. #define HIScrollBar_API
  7197. /*
  7198.  * -- The Class API
  7199.  */
  7200.  
  7201. /*
  7202.  * Start of user-defined types:
  7203.  */
  7204.  
  7205. /*
  7206.  * End of user-defined types.
  7207.  */
  7208.  
  7209. #ifdef OLDIBMSOMAPISUPPORT
  7210. #define HIScrollBarCClassData HIScrollBarClassData
  7211. #define HIScrollBarNewClass(major,minor) somNewVersionedClassReference(HIScrollBar,major,minor)
  7212. #endif
  7213.  
  7214. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  7215. #define HIScrollBarMetaClass SOMClass
  7216.  
  7217. #if PRAGMA_ALIGN_SUPPORTED
  7218. #  pragma options align=power
  7219. #endif
  7220.  
  7221. /* The API to the HIScrollBar class object, and the methods it introduces. */
  7222. SOMEXTERN struct HIScrollBarClassDataStructure {
  7223. #ifdef OLDIBMSOMAPISUPPORT
  7224.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  7225. #else
  7226.     long zero;
  7227. #endif
  7228.     somStaticClassInfo *sci;
  7229.     somDToken        instanceDataToken;
  7230.     long reserved [3];
  7231.     somMToken InitScrollBar;
  7232.     somMToken SetArrowDelta;
  7233.     somMToken GetArrowDelta;
  7234.     somMToken SetPageDelta;
  7235.     somMToken GetPageDelta;
  7236. } SOMDLINK HIScrollBarClassData;
  7237.  
  7238. #if PRAGMA_ALIGN_SUPPORTED
  7239. #  pragma options align=reset
  7240. #endif
  7241.  
  7242. #if !defined(HIScrollBar_Class_Source) && !defined(SOM_Module_hicontrols_Source)
  7243. #if PRAGMA_IMPORT_SUPPORTED
  7244. #pragma import list HIScrollBarClassData
  7245. #endif
  7246. #endif
  7247.  
  7248.  
  7249. /*
  7250.  * -- Typedefs for HIScrollBar Method Procedures
  7251.  */
  7252. SOMEXTERN {
  7253. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_InitScrollBar)(HIScrollBar *somSelf, Environment *ev,
  7254.         RefLabel* identifier,
  7255.         HIWindow* window,
  7256.         Rect* bounds,
  7257.         SInt32 value,
  7258.         SInt32 minimumValue,
  7259.         SInt32 maximumValue);
  7260. typedef void   (* SOMLINK somTD_HIScrollBar_SetArrowDelta)(HIScrollBar *somSelf, Environment *ev,
  7261.         UInt32 delta);
  7262. typedef UInt32   (* SOMLINK somTD_HIScrollBar_GetArrowDelta)(HIScrollBar *somSelf, Environment *ev);
  7263. typedef void   (* SOMLINK somTD_HIScrollBar_SetPageDelta)(HIScrollBar *somSelf, Environment *ev,
  7264.         UInt32 delta);
  7265. typedef UInt32   (* SOMLINK somTD_HIScrollBar_GetPageDelta)(HIScrollBar *somSelf, Environment *ev);
  7266.  
  7267. /*
  7268.  * -- Typedefs for Inherited Methods
  7269.  */
  7270. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_InitControl)(HIScrollBar *somSelf, Environment *ev,
  7271.         RefLabel* identifier,
  7272.         HIWindow* window,
  7273.         Rect* bounds,
  7274.         SInt32 value,
  7275.         SInt32 minimumValue,
  7276.         SInt32 maximumValue);
  7277. typedef void   (* SOMLINK somTD_HIScrollBar_SetValue)(HIScrollBar *somSelf, Environment *ev,
  7278.         SInt32 newValue);
  7279. typedef SInt32   (* SOMLINK somTD_HIScrollBar_GetValue)(HIScrollBar *somSelf, Environment *ev);
  7280. typedef void   (* SOMLINK somTD_HIScrollBar_SetMinimum)(HIScrollBar *somSelf, Environment *ev,
  7281.         SInt32 newMinimum);
  7282. typedef SInt32   (* SOMLINK somTD_HIScrollBar_GetMinimum)(HIScrollBar *somSelf, Environment *ev);
  7283. typedef void   (* SOMLINK somTD_HIScrollBar_SetMaximum)(HIScrollBar *somSelf, Environment *ev,
  7284.         SInt32 newMaximum);
  7285. typedef SInt32   (* SOMLINK somTD_HIScrollBar_GetMaximum)(HIScrollBar *somSelf, Environment *ev);
  7286. typedef void   (* SOMLINK somTD_HIScrollBar_SimulateSelection)(HIScrollBar *somSelf, Environment *ev);
  7287. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIScrollBar_GetEmbeddingParent)(HIScrollBar *somSelf, Environment *ev);
  7288. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_InitPanel)(HIScrollBar *somSelf, Environment *ev,
  7289.         RefLabel* identifier,
  7290.         HIWindow* window,
  7291.         Rect* bounds);
  7292. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_RegisterInterestInAppleEvent)(HIScrollBar *somSelf, Environment *ev,
  7293.         AEHandlerTableRef table,
  7294.         AEEventClass eventClass,
  7295.         AEEventID eventID,
  7296.         HIEventRoutingType eventRouting);
  7297. typedef boolean   (* SOMLINK somTD_HIScrollBar_HasValidContent)(HIScrollBar *somSelf, Environment *ev);
  7298. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_GetDeepCollectionItemData)(HIScrollBar *somSelf, Environment *ev,
  7299.         CollectionTag tag,
  7300.         SInt32 id,
  7301.         ByteCount sizeAllowed,
  7302.         ByteCount* sizeReturned,
  7303.         void* itemData);
  7304. typedef HIWindow*   (* SOMLINK somTD_HIScrollBar_GetWindow)(HIScrollBar *somSelf, Environment *ev);
  7305. typedef CGrafPtr   (* SOMLINK somTD_HIScrollBar_GetPort)(HIScrollBar *somSelf, Environment *ev);
  7306. typedef void   (* SOMLINK somTD_HIScrollBar_GetRefLabel)(HIScrollBar *somSelf, Environment *ev,
  7307.         RefLabel* identifier);
  7308. typedef Collection   (* SOMLINK somTD_HIScrollBar_GetCollection)(HIScrollBar *somSelf, Environment *ev);
  7309. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_Init)(HIScrollBar *somSelf, Environment *ev,
  7310.         RefLabel* identifier,
  7311.         Rect* boundingRect);
  7312. typedef void   (* SOMLINK somTD_HIScrollBar_Terminate)(HIScrollBar *somSelf, Environment *ev);
  7313. typedef HIObject*   (* SOMLINK somTD_HIScrollBar_Clone)(HIScrollBar *somSelf, Environment *ev);
  7314. typedef void   (* SOMLINK somTD_HIScrollBar_Release)(HIScrollBar *somSelf, Environment *ev);
  7315. typedef ItemCount   (* SOMLINK somTD_HIScrollBar_GetOwnerCount)(HIScrollBar *somSelf, Environment *ev);
  7316. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_InitFromAERecord)(HIScrollBar *somSelf, Environment *ev,
  7317.         AESubDesc* baseInitializerData,
  7318.         AESubDesc* initializerDataForClass,
  7319.         HIAERecordDataFormat dataFormat);
  7320. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_WriteToAERecord)(HIScrollBar *somSelf, Environment *ev,
  7321.         AERecord* dataForSubclass,
  7322.         AERecord* objectData,
  7323.         HIAERecordDataFormat dataFormat);
  7324. typedef void   (* SOMLINK somTD_HIScrollBar_CalculateOptimalSize)(HIScrollBar *somSelf, Environment *ev,
  7325.         SInt16* optimalWidth,
  7326.         SInt16* optimalHeight);
  7327. typedef void   (* SOMLINK somTD_HIScrollBar_GetBoundingRect)(HIScrollBar *somSelf, Environment *ev,
  7328.         HICoordinateSystem coordinate,
  7329.         Rect* boundingRect);
  7330. typedef void   (* SOMLINK somTD_HIScrollBar_SetBoundingRect)(HIScrollBar *somSelf, Environment *ev,
  7331.         HICoordinateSystem coordinate,
  7332.         Rect* newBoundingRect);
  7333. typedef void   (* SOMLINK somTD_HIScrollBar_SetPosition)(HIScrollBar *somSelf, Environment *ev,
  7334.         HICoordinateSystem coordinate,
  7335.         Point* newPosition);
  7336. typedef void   (* SOMLINK somTD_HIScrollBar_SetSize)(HIScrollBar *somSelf, Environment *ev,
  7337.         SInt16 width,
  7338.         SInt16 height);
  7339. typedef void   (* SOMLINK somTD_HIScrollBar_GetUpdateRect)(HIScrollBar *somSelf, Environment *ev,
  7340.         HICoordinateSystem coordinate,
  7341.         Rect* updateRect);
  7342. typedef void   (* SOMLINK somTD_HIScrollBar_Enable)(HIScrollBar *somSelf, Environment *ev);
  7343. typedef void   (* SOMLINK somTD_HIScrollBar_Disable)(HIScrollBar *somSelf, Environment *ev);
  7344. typedef boolean   (* SOMLINK somTD_HIScrollBar_IsEnabled)(HIScrollBar *somSelf, Environment *ev);
  7345. typedef void   (* SOMLINK somTD_HIScrollBar_Show)(HIScrollBar *somSelf, Environment *ev);
  7346. typedef void   (* SOMLINK somTD_HIScrollBar_Hide)(HIScrollBar *somSelf, Environment *ev);
  7347. typedef boolean   (* SOMLINK somTD_HIScrollBar_IsVisible)(HIScrollBar *somSelf, Environment *ev);
  7348. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_HandleAppleEvent)(HIScrollBar *somSelf, Environment *ev,
  7349.         AEEventClass eventClass,
  7350.         AEEventID eventID,
  7351.         AppleEvent* theEvent,
  7352.         AppleEvent* reply,
  7353.         AEHandlerTableRef handlerTableRef);
  7354. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_HandleActivate)(HIScrollBar *somSelf, Environment *ev,
  7355.         AppleEvent* theEvent,
  7356.         AppleEvent* reply,
  7357.         AEHandlerTableRef handlerTableRef);
  7358. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_HandleDeactivate)(HIScrollBar *somSelf, Environment *ev,
  7359.         AppleEvent* theEvent,
  7360.         AppleEvent* reply,
  7361.         AEHandlerTableRef handlerTableRef);
  7362. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_HandleNavigation)(HIScrollBar *somSelf, Environment *ev,
  7363.         SInt8 key,
  7364.         SInt8 keyCode,
  7365.         EventModifiers modifiers,
  7366.         AppleEvent* theEvent,
  7367.         AppleEvent* reply,
  7368.         AEHandlerTableRef handlerTableRef);
  7369. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_HandleMouseDownInContent)(HIScrollBar *somSelf, Environment *ev,
  7370.         Point* portLocalWhere,
  7371.         EventModifiers modifiers,
  7372.         AppleEvent* theEvent,
  7373.         AppleEvent* reply,
  7374.         AEHandlerTableRef handlerTableRef);
  7375. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_HandleMouseMovedInContent)(HIScrollBar *somSelf, Environment *ev,
  7376.         Point* portLocalWhere,
  7377.         EventModifiers modifiers,
  7378.         AppleEvent* theEvent,
  7379.         AppleEvent* reply,
  7380.         AEHandlerTableRef handlerTableRef);
  7381. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_HandleMouseStoppedMovingInContent)(HIScrollBar *somSelf, Environment *ev,
  7382.         Point* portLocalWhere,
  7383.         EventModifiers modifiers,
  7384.         AppleEvent* theEvent,
  7385.         AppleEvent* reply,
  7386.         AEHandlerTableRef handlerTableRef);
  7387. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_HandleMouseUpInContent)(HIScrollBar *somSelf, Environment *ev,
  7388.         Point* portLocalWhere,
  7389.         EventModifiers modifiers,
  7390.         AppleEvent* theEvent,
  7391.         AppleEvent* reply,
  7392.         AEHandlerTableRef handlerTableRef);
  7393. typedef void   (* SOMLINK somTD_HIScrollBar_TakeUserInputFocus)(HIScrollBar *somSelf, Environment *ev);
  7394. typedef void   (* SOMLINK somTD_HIScrollBar_ReleaseUserInputFocus)(HIScrollBar *somSelf, Environment *ev);
  7395. typedef boolean   (* SOMLINK somTD_HIScrollBar_HasUserInputFocus)(HIScrollBar *somSelf, Environment *ev);
  7396. typedef boolean   (* SOMLINK somTD_HIScrollBar_CanReleaseUserInputFocus)(HIScrollBar *somSelf, Environment *ev);
  7397. typedef void   (* SOMLINK somTD_HIScrollBar_SetUserInputFocusFlags)(HIScrollBar *somSelf, Environment *ev,
  7398.         HIUserInputFocusFlags flags);
  7399. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIScrollBar_GetUserInputFocusFlags)(HIScrollBar *somSelf, Environment *ev);
  7400. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_SetTitle)(HIScrollBar *somSelf, Environment *ev,
  7401.         ConstHIImageRef title,
  7402.         HIAdoptionFlags disposalAdoptionFlags);
  7403. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_GetTitle)(HIScrollBar *somSelf, Environment *ev,
  7404.         HIImageRef* title);
  7405. typedef void   (* SOMLINK somTD_HIScrollBar_Draw)(HIScrollBar *somSelf, Environment *ev,
  7406.         CGrafPtr whichPort,
  7407.         RgnHandle drawRgn);
  7408. typedef void   (* SOMLINK somTD_HIScrollBar_Erase)(HIScrollBar *somSelf, Environment *ev,
  7409.         CGrafPtr whichPort,
  7410.         RgnHandle eraseRgn);
  7411. typedef void   (* SOMLINK somTD_HIScrollBar_Invalidate)(HIScrollBar *somSelf, Environment *ev);
  7412. typedef HIDrawingMode   (* SOMLINK somTD_HIScrollBar_GetDrawingMode)(HIScrollBar *somSelf, Environment *ev);
  7413. typedef void   (* SOMLINK somTD_HIScrollBar_SetDrawingMode)(HIScrollBar *somSelf, Environment *ev,
  7414.         HIDrawingMode drawingMode);
  7415. typedef void   (* SOMLINK somTD_HIScrollBar_SetBackgroundPattern)(HIScrollBar *somSelf, Environment *ev,
  7416.         PixPatHandle backgroundPattern);
  7417. typedef PixPatHandle   (* SOMLINK somTD_HIScrollBar_GetBackgroundPattern)(HIScrollBar *somSelf, Environment *ev);
  7418. typedef void   (* SOMLINK somTD_HIScrollBar_Cut)(HIScrollBar *somSelf, Environment *ev);
  7419. typedef void   (* SOMLINK somTD_HIScrollBar_Copy)(HIScrollBar *somSelf, Environment *ev);
  7420. typedef void   (* SOMLINK somTD_HIScrollBar_Paste)(HIScrollBar *somSelf, Environment *ev);
  7421. typedef void   (* SOMLINK somTD_HIScrollBar_Clear)(HIScrollBar *somSelf, Environment *ev);
  7422. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIScrollBar_GetClipboardSupportFlags)(HIScrollBar *somSelf, Environment *ev);
  7423. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_AddStateChangeCallback)(HIScrollBar *somSelf, Environment *ev,
  7424.         HIStateChangeCallbackProcPtr changedStateCallback,
  7425.         HIStateChangeCallbackRef* newCallbackRef);
  7426. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_RemoveStateChangeCallback)(HIScrollBar *somSelf, Environment *ev,
  7427.         HIStateChangeCallbackRef callbackRefToRemove);
  7428. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_GetHIObjectFromRefLabel)(Environment *ev,
  7429.         RefLabel* identifier,
  7430.         ItemCount requestedObjects,
  7431.         ItemCount* totalObjects,
  7432.         HIObject** theObjects);
  7433. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_GetNewHIObject)(Environment *ev,
  7434.         AESubDesc* objectInitializer,
  7435.         HIObject** newObject);
  7436. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_GetNewHIObjectFromResource)(Environment *ev,
  7437.         ResID objectInitializerResourceID,
  7438.         HIObject** newObject);
  7439. typedef void   (* SOMLINK somTD_HIScrollBar_DrawContent)(HIScrollBar *somSelf, Environment *ev,
  7440.         CGrafPtr whichPort,
  7441.         RgnHandle drawRgn);
  7442. typedef void   (* SOMLINK somTD_HIScrollBar_EraseContent)(HIScrollBar *somSelf, Environment *ev,
  7443.         CGrafPtr whichPort,
  7444.         RgnHandle regionToErase);
  7445. typedef void   (* SOMLINK somTD_HIScrollBar_TranslatePoint)(HIScrollBar *somSelf, Environment *ev,
  7446.         HICoordinateSystem translateFrom,
  7447.         HICoordinateSystem translateTo,
  7448.         Point* sourcePoint,
  7449.         Point* translatedPoint);
  7450. typedef void   (* SOMLINK somTD_HIScrollBar_TranslateRect)(HIScrollBar *somSelf, Environment *ev,
  7451.         HICoordinateSystem translateFrom,
  7452.         HICoordinateSystem translateTo,
  7453.         Rect* sourceRect,
  7454.         Rect* translatedRect);
  7455. typedef void   (* SOMLINK somTD_HIScrollBar_StateChanged)(HIScrollBar *somSelf, Environment *ev,
  7456.         HIStateChangeCodeCreator selectorCreator,
  7457.         HIStateChangeCode changedCode);
  7458. typedef void   (* SOMLINK somTD_HIScrollBar_SetClipboardSupportFlags)(HIScrollBar *somSelf, Environment *ev,
  7459.         HIClipboardSupportFlags flags);
  7460. typedef OSStatus   (* SOMLINK somTD_HIScrollBar_Verify)(HIScrollBar *somSelf, Environment *ev);
  7461. typedef void   (* SOMLINK somTD_HIScrollBar_somInit)(HIScrollBar *somSelf);
  7462. typedef void   (* SOMLINK somTD_HIScrollBar_somUninit)(HIScrollBar *somSelf);
  7463. typedef SOMObject*   (* SOMLINK somTD_HIScrollBar_somDuplicateReference)(HIScrollBar *somSelf);
  7464. typedef boolean   (* SOMLINK somTD_HIScrollBar_somCompareReference)(HIScrollBar *somSelf,
  7465.         SOMObject* anObject);
  7466. typedef SOMObject*   (* SOMLINK somTD_HIScrollBar_somRelease)(HIScrollBar *somSelf);
  7467. typedef void   (* SOMLINK somTD_HIScrollBar_somFree)(HIScrollBar *somSelf);
  7468. typedef boolean   (* SOMLINK somTD_HIScrollBar_somCanDelete)(HIScrollBar *somSelf);
  7469. typedef SOMClass*   (* SOMLINK somTD_HIScrollBar_somGetClass)(HIScrollBar *somSelf);
  7470. typedef corbastring   (* SOMLINK somTD_HIScrollBar_somGetClassName)(HIScrollBar *somSelf);
  7471. typedef long   (* SOMLINK somTD_HIScrollBar_somGetSize)(HIScrollBar *somSelf);
  7472. typedef boolean   (* SOMLINK somTD_HIScrollBar_somIsA)(HIScrollBar *somSelf,
  7473.         SOMClass* aClassObj);
  7474. typedef boolean   (* SOMLINK somTD_HIScrollBar_somRespondsTo)(HIScrollBar *somSelf,
  7475.         somId mId);
  7476. typedef boolean   (* SOMLINK somTD_HIScrollBar_somIsInstanceOf)(HIScrollBar *somSelf,
  7477.         SOMClass* aClassObj);
  7478. typedef boolean   (* SOMLINK somTD_HIScrollBar_somDispatch)(HIScrollBar *somSelf,
  7479.         somToken* retValue,
  7480.         somId methodId,
  7481.         va_list ap);
  7482. typedef boolean   (* SOMLINK somTD_HIScrollBar_somClassDispatch)(HIScrollBar *somSelf,
  7483.         SOMClass* clsObj,
  7484.         somToken* retValue,
  7485.         somId methodId,
  7486.         va_list ap);
  7487. typedef boolean   (* SOMLINK somTD_HIScrollBar_somCastObj)(HIScrollBar *somSelf,
  7488.         SOMClass* cls);
  7489. typedef boolean   (* SOMLINK somTD_HIScrollBar_somResetObj)(HIScrollBar *somSelf);
  7490. typedef SOMObject*   (* SOMLINK somTD_HIScrollBar_somPrintSelf)(HIScrollBar *somSelf);
  7491. typedef void   (* SOMLINK somTD_HIScrollBar_somDumpSelf)(HIScrollBar *somSelf,
  7492.         long level);
  7493. typedef void   (* SOMLINK somTD_HIScrollBar_somDumpSelfInt)(HIScrollBar *somSelf,
  7494.         long level);
  7495. }
  7496.  
  7497. #endif /* HIScrollBar_API */
  7498.  
  7499.  
  7500. /*
  7501.  * -- This emitter treats Method Tokens as Thunks by default.
  7502.  * -- Use the sc modifier "nothunks" to change this default
  7503.  */
  7504. #undef somresolve_
  7505. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  7506.  
  7507. /*
  7508.  * -- The C++ Wrapper Class for HIScrollBar
  7509.  */
  7510. class HIScrollBar : public HIControl
  7511. {
  7512. public:
  7513.  
  7514. // HIScrollBar::new registers use of the class object, and then uses somNew
  7515. // to allocate memory and load the object method table pointer. 
  7516. void *operator new(size_t size)
  7517. {
  7518.     SOM_IgnoreWarning(size);
  7519.     // Allocate memory using the default allocator for HIScrollBar, and
  7520.     // clear mem & set method table pointer, call basic initialization
  7521.     return (void*) somNewObject(HIScrollBar);
  7522. }
  7523.  
  7524. // HIScrollBar::delete uses the default deallocator for the object's class.
  7525. void operator delete(void * obj)
  7526. {
  7527.     if (obj) {
  7528.         SOM_Resolve(obj,SOMObject,somFree)
  7529.            ( (SOMObject*) obj );
  7530.     }
  7531. }
  7532.  
  7533. /* method: InitScrollBar */
  7534. OSStatus   InitScrollBar(Environment *ev,
  7535.         RefLabel* identifier,
  7536.         HIWindow* window,
  7537.         Rect* bounds,
  7538.         SInt32 value,
  7539.         SInt32 minimumValue,
  7540.         SInt32 maximumValue)
  7541. {
  7542.    return SOM_ResolveD(this,HIScrollBar,HIScrollBar,InitScrollBar)
  7543.     (this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
  7544. }
  7545.  
  7546. /* method: SetArrowDelta */
  7547. void   SetArrowDelta(Environment *ev,
  7548.         UInt32 delta)
  7549. {
  7550.    SOM_ResolveD(this,HIScrollBar,HIScrollBar,SetArrowDelta)
  7551.     (this,ev,delta);
  7552. }
  7553.  
  7554. /* method: GetArrowDelta */
  7555. UInt32   GetArrowDelta(Environment *ev)
  7556. {
  7557.    return SOM_ResolveD(this,HIScrollBar,HIScrollBar,GetArrowDelta)
  7558.     (this,ev);
  7559. }
  7560.  
  7561. /* method: SetPageDelta */
  7562. void   SetPageDelta(Environment *ev,
  7563.         UInt32 delta)
  7564. {
  7565.    SOM_ResolveD(this,HIScrollBar,HIScrollBar,SetPageDelta)
  7566.     (this,ev,delta);
  7567. }
  7568.  
  7569. /* method: GetPageDelta */
  7570. UInt32   GetPageDelta(Environment *ev)
  7571. {
  7572.    return SOM_ResolveD(this,HIScrollBar,HIScrollBar,GetPageDelta)
  7573.     (this,ev);
  7574. }
  7575.  
  7576.  
  7577. /*
  7578.  * -- Inherited methods
  7579.  */
  7580. /* method: InitControl */
  7581. OSStatus   InitControl(Environment *ev,
  7582.         RefLabel* identifier,
  7583.         HIWindow* window,
  7584.         Rect* bounds,
  7585.         SInt32 value,
  7586.         SInt32 minimumValue,
  7587.         SInt32 maximumValue)
  7588. {
  7589.    return SOM_ResolveD(this,HIScrollBar,HIControl,InitControl)
  7590.     (this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
  7591. }
  7592.  
  7593. /* method: SetValue */
  7594. void   SetValue(Environment *ev,
  7595.         SInt32 newValue)
  7596. {
  7597.    SOM_ResolveD(this,HIScrollBar,HIControl,SetValue)
  7598.     (this,ev,newValue);
  7599. }
  7600.  
  7601. /* method: GetValue */
  7602. SInt32   GetValue(Environment *ev)
  7603. {
  7604.    return SOM_ResolveD(this,HIScrollBar,HIControl,GetValue)
  7605.     (this,ev);
  7606. }
  7607.  
  7608. /* method: SetMinimum */
  7609. void   SetMinimum(Environment *ev,
  7610.         SInt32 newMinimum)
  7611. {
  7612.    SOM_ResolveD(this,HIScrollBar,HIControl,SetMinimum)
  7613.     (this,ev,newMinimum);
  7614. }
  7615.  
  7616. /* method: GetMinimum */
  7617. SInt32   GetMinimum(Environment *ev)
  7618. {
  7619.    return SOM_ResolveD(this,HIScrollBar,HIControl,GetMinimum)
  7620.     (this,ev);
  7621. }
  7622.  
  7623. /* method: SetMaximum */
  7624. void   SetMaximum(Environment *ev,
  7625.         SInt32 newMaximum)
  7626. {
  7627.    SOM_ResolveD(this,HIScrollBar,HIControl,SetMaximum)
  7628.     (this,ev,newMaximum);
  7629. }
  7630.  
  7631. /* method: GetMaximum */
  7632. SInt32   GetMaximum(Environment *ev)
  7633. {
  7634.    return SOM_ResolveD(this,HIScrollBar,HIControl,GetMaximum)
  7635.     (this,ev);
  7636. }
  7637.  
  7638. /* method: SimulateSelection */
  7639. void   SimulateSelection(Environment *ev)
  7640. {
  7641.    SOM_ResolveD(this,HIScrollBar,HIControl,SimulateSelection)
  7642.     (this,ev);
  7643. }
  7644.  
  7645. /* method: GetEmbeddingParent */
  7646. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  7647. {
  7648.    return SOM_ResolveD(this,HIScrollBar,HIPanel,GetEmbeddingParent)
  7649.     (this,ev);
  7650. }
  7651.  
  7652. /* method: InitPanel */
  7653. OSStatus   InitPanel(Environment *ev,
  7654.         RefLabel* identifier,
  7655.         HIWindow* window,
  7656.         Rect* bounds)
  7657. {
  7658.    return SOM_ResolveD(this,HIScrollBar,HIPanel,InitPanel)
  7659.     (this,ev,identifier,window,bounds);
  7660. }
  7661.  
  7662. /* method: RegisterInterestInAppleEvent */
  7663. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  7664.         AEHandlerTableRef table,
  7665.         AEEventClass eventClass,
  7666.         AEEventID eventID,
  7667.         HIEventRoutingType eventRouting)
  7668. {
  7669.    return SOM_ResolveD(this,HIScrollBar,HIPanel,RegisterInterestInAppleEvent)
  7670.     (this,ev,table,eventClass,eventID,eventRouting);
  7671. }
  7672.  
  7673. /* method: HasValidContent */
  7674. boolean   HasValidContent(Environment *ev)
  7675. {
  7676.    return SOM_ResolveD(this,HIScrollBar,HIPanel,HasValidContent)
  7677.     (this,ev);
  7678. }
  7679.  
  7680. /* method: GetDeepCollectionItemData */
  7681. OSStatus   GetDeepCollectionItemData(Environment *ev,
  7682.         CollectionTag tag,
  7683.         SInt32 id,
  7684.         ByteCount sizeAllowed,
  7685.         ByteCount* sizeReturned,
  7686.         void* itemData)
  7687. {
  7688.    return SOM_ResolveD(this,HIScrollBar,HIPanel,GetDeepCollectionItemData)
  7689.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  7690. }
  7691.  
  7692. /* method: GetWindow */
  7693. HIWindow*   GetWindow(Environment *ev)
  7694. {
  7695.    return SOM_ResolveD(this,HIScrollBar,HIObject,GetWindow)
  7696.     (this,ev);
  7697. }
  7698.  
  7699. /* method: GetPort */
  7700. CGrafPtr   GetPort(Environment *ev)
  7701. {
  7702.    return SOM_ResolveD(this,HIScrollBar,HIObject,GetPort)
  7703.     (this,ev);
  7704. }
  7705.  
  7706. /* method: GetRefLabel */
  7707. void   GetRefLabel(Environment *ev,
  7708.         RefLabel* identifier)
  7709. {
  7710.    SOM_ResolveD(this,HIScrollBar,HIObject,GetRefLabel)
  7711.     (this,ev,identifier);
  7712. }
  7713.  
  7714. /* method: GetCollection */
  7715. Collection   GetCollection(Environment *ev)
  7716. {
  7717.    return SOM_ResolveD(this,HIScrollBar,HIObject,GetCollection)
  7718.     (this,ev);
  7719. }
  7720.  
  7721. /* method: Init */
  7722. OSStatus   Init(Environment *ev,
  7723.         RefLabel* identifier,
  7724.         Rect* boundingRect)
  7725. {
  7726.    return SOM_ResolveD(this,HIScrollBar,HIObject,Init)
  7727.     (this,ev,identifier,boundingRect);
  7728. }
  7729.  
  7730. /* method: Terminate */
  7731. void   Terminate(Environment *ev)
  7732. {
  7733.    SOM_ResolveD(this,HIScrollBar,HIObject,Terminate)
  7734.     (this,ev);
  7735. }
  7736.  
  7737. /* method: Clone */
  7738. HIObject*   Clone(Environment *ev)
  7739. {
  7740.    return SOM_ResolveD(this,HIScrollBar,HIObject,Clone)
  7741.     (this,ev);
  7742. }
  7743.  
  7744. /* method: Release */
  7745. void   Release(Environment *ev)
  7746. {
  7747.    SOM_ResolveD(this,HIScrollBar,HIObject,Release)
  7748.     (this,ev);
  7749. }
  7750.  
  7751. /* method: GetOwnerCount */
  7752. ItemCount   GetOwnerCount(Environment *ev)
  7753. {
  7754.    return SOM_ResolveD(this,HIScrollBar,HIObject,GetOwnerCount)
  7755.     (this,ev);
  7756. }
  7757.  
  7758. /* method: InitFromAERecord */
  7759. OSStatus   InitFromAERecord(Environment *ev,
  7760.         AESubDesc* baseInitializerData,
  7761.         AESubDesc* initializerDataForClass,
  7762.         HIAERecordDataFormat dataFormat)
  7763. {
  7764.    return SOM_ResolveD(this,HIScrollBar,HIObject,InitFromAERecord)
  7765.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  7766. }
  7767.  
  7768. /* method: WriteToAERecord */
  7769. OSStatus   WriteToAERecord(Environment *ev,
  7770.         AERecord* dataForSubclass,
  7771.         AERecord* objectData,
  7772.         HIAERecordDataFormat dataFormat)
  7773. {
  7774.    return SOM_ResolveD(this,HIScrollBar,HIObject,WriteToAERecord)
  7775.     (this,ev,dataForSubclass,objectData,dataFormat);
  7776. }
  7777.  
  7778. /* method: CalculateOptimalSize */
  7779. void   CalculateOptimalSize(Environment *ev,
  7780.         SInt16* optimalWidth,
  7781.         SInt16* optimalHeight)
  7782. {
  7783.    SOM_ResolveD(this,HIScrollBar,HIObject,CalculateOptimalSize)
  7784.     (this,ev,optimalWidth,optimalHeight);
  7785. }
  7786.  
  7787. /* method: GetBoundingRect */
  7788. void   GetBoundingRect(Environment *ev,
  7789.         HICoordinateSystem coordinate,
  7790.         Rect* boundingRect)
  7791. {
  7792.    SOM_ResolveD(this,HIScrollBar,HIObject,GetBoundingRect)
  7793.     (this,ev,coordinate,boundingRect);
  7794. }
  7795.  
  7796. /* method: SetBoundingRect */
  7797. void   SetBoundingRect(Environment *ev,
  7798.         HICoordinateSystem coordinate,
  7799.         Rect* newBoundingRect)
  7800. {
  7801.    SOM_ResolveD(this,HIScrollBar,HIObject,SetBoundingRect)
  7802.     (this,ev,coordinate,newBoundingRect);
  7803. }
  7804.  
  7805. /* method: SetPosition */
  7806. void   SetPosition(Environment *ev,
  7807.         HICoordinateSystem coordinate,
  7808.         Point* newPosition)
  7809. {
  7810.    SOM_ResolveD(this,HIScrollBar,HIObject,SetPosition)
  7811.     (this,ev,coordinate,newPosition);
  7812. }
  7813.  
  7814. /* method: SetSize */
  7815. void   SetSize(Environment *ev,
  7816.         SInt16 width,
  7817.         SInt16 height)
  7818. {
  7819.    SOM_ResolveD(this,HIScrollBar,HIObject,SetSize)
  7820.     (this,ev,width,height);
  7821. }
  7822.  
  7823. /* method: GetUpdateRect */
  7824. void   GetUpdateRect(Environment *ev,
  7825.         HICoordinateSystem coordinate,
  7826.         Rect* updateRect)
  7827. {
  7828.    SOM_ResolveD(this,HIScrollBar,HIObject,GetUpdateRect)
  7829.     (this,ev,coordinate,updateRect);
  7830. }
  7831.  
  7832. /* method: Enable */
  7833. void   Enable(Environment *ev)
  7834. {
  7835.    SOM_ResolveD(this,HIScrollBar,HIObject,Enable)
  7836.     (this,ev);
  7837. }
  7838.  
  7839. /* method: Disable */
  7840. void   Disable(Environment *ev)
  7841. {
  7842.    SOM_ResolveD(this,HIScrollBar,HIObject,Disable)
  7843.     (this,ev);
  7844. }
  7845.  
  7846. /* method: IsEnabled */
  7847. boolean   IsEnabled(Environment *ev)
  7848. {
  7849.    return SOM_ResolveD(this,HIScrollBar,HIObject,IsEnabled)
  7850.     (this,ev);
  7851. }
  7852.  
  7853. /* method: Show */
  7854. void   Show(Environment *ev)
  7855. {
  7856.    SOM_ResolveD(this,HIScrollBar,HIObject,Show)
  7857.     (this,ev);
  7858. }
  7859.  
  7860. /* method: Hide */
  7861. void   Hide(Environment *ev)
  7862. {
  7863.    SOM_ResolveD(this,HIScrollBar,HIObject,Hide)
  7864.     (this,ev);
  7865. }
  7866.  
  7867. /* method: IsVisible */
  7868. boolean   IsVisible(Environment *ev)
  7869. {
  7870.    return SOM_ResolveD(this,HIScrollBar,HIObject,IsVisible)
  7871.     (this,ev);
  7872. }
  7873.  
  7874. /* method: HandleAppleEvent */
  7875. OSStatus   HandleAppleEvent(Environment *ev,
  7876.         AEEventClass eventClass,
  7877.         AEEventID eventID,
  7878.         AppleEvent* theEvent,
  7879.         AppleEvent* reply,
  7880.         AEHandlerTableRef handlerTableRef)
  7881. {
  7882.    return SOM_ResolveD(this,HIScrollBar,HIObject,HandleAppleEvent)
  7883.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  7884. }
  7885.  
  7886. /* method: HandleActivate */
  7887. OSStatus   HandleActivate(Environment *ev,
  7888.         AppleEvent* theEvent,
  7889.         AppleEvent* reply,
  7890.         AEHandlerTableRef handlerTableRef)
  7891. {
  7892.    return SOM_ResolveD(this,HIScrollBar,HIObject,HandleActivate)
  7893.     (this,ev,theEvent,reply,handlerTableRef);
  7894. }
  7895.  
  7896. /* method: HandleDeactivate */
  7897. OSStatus   HandleDeactivate(Environment *ev,
  7898.         AppleEvent* theEvent,
  7899.         AppleEvent* reply,
  7900.         AEHandlerTableRef handlerTableRef)
  7901. {
  7902.    return SOM_ResolveD(this,HIScrollBar,HIObject,HandleDeactivate)
  7903.     (this,ev,theEvent,reply,handlerTableRef);
  7904. }
  7905.  
  7906. /* method: HandleNavigation */
  7907. OSStatus   HandleNavigation(Environment *ev,
  7908.         SInt8 key,
  7909.         SInt8 keyCode,
  7910.         EventModifiers modifiers,
  7911.         AppleEvent* theEvent,
  7912.         AppleEvent* reply,
  7913.         AEHandlerTableRef handlerTableRef)
  7914. {
  7915.    return SOM_ResolveD(this,HIScrollBar,HIObject,HandleNavigation)
  7916.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  7917. }
  7918.  
  7919. /* method: HandleMouseDownInContent */
  7920. OSStatus   HandleMouseDownInContent(Environment *ev,
  7921.         Point* portLocalWhere,
  7922.         EventModifiers modifiers,
  7923.         AppleEvent* theEvent,
  7924.         AppleEvent* reply,
  7925.         AEHandlerTableRef handlerTableRef)
  7926. {
  7927.    return SOM_ResolveD(this,HIScrollBar,HIObject,HandleMouseDownInContent)
  7928.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  7929. }
  7930.  
  7931. /* method: HandleMouseMovedInContent */
  7932. OSStatus   HandleMouseMovedInContent(Environment *ev,
  7933.         Point* portLocalWhere,
  7934.         EventModifiers modifiers,
  7935.         AppleEvent* theEvent,
  7936.         AppleEvent* reply,
  7937.         AEHandlerTableRef handlerTableRef)
  7938. {
  7939.    return SOM_ResolveD(this,HIScrollBar,HIObject,HandleMouseMovedInContent)
  7940.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  7941. }
  7942.  
  7943. /* method: HandleMouseStoppedMovingInContent */
  7944. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  7945.         Point* portLocalWhere,
  7946.         EventModifiers modifiers,
  7947.         AppleEvent* theEvent,
  7948.         AppleEvent* reply,
  7949.         AEHandlerTableRef handlerTableRef)
  7950. {
  7951.    return SOM_ResolveD(this,HIScrollBar,HIObject,HandleMouseStoppedMovingInContent)
  7952.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  7953. }
  7954.  
  7955. /* method: HandleMouseUpInContent */
  7956. OSStatus   HandleMouseUpInContent(Environment *ev,
  7957.         Point* portLocalWhere,
  7958.         EventModifiers modifiers,
  7959.         AppleEvent* theEvent,
  7960.         AppleEvent* reply,
  7961.         AEHandlerTableRef handlerTableRef)
  7962. {
  7963.    return SOM_ResolveD(this,HIScrollBar,HIObject,HandleMouseUpInContent)
  7964.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  7965. }
  7966.  
  7967. /* method: TakeUserInputFocus */
  7968. void   TakeUserInputFocus(Environment *ev)
  7969. {
  7970.    SOM_ResolveD(this,HIScrollBar,HIObject,TakeUserInputFocus)
  7971.     (this,ev);
  7972. }
  7973.  
  7974. /* method: ReleaseUserInputFocus */
  7975. void   ReleaseUserInputFocus(Environment *ev)
  7976. {
  7977.    SOM_ResolveD(this,HIScrollBar,HIObject,ReleaseUserInputFocus)
  7978.     (this,ev);
  7979. }
  7980.  
  7981. /* method: HasUserInputFocus */
  7982. boolean   HasUserInputFocus(Environment *ev)
  7983. {
  7984.    return SOM_ResolveD(this,HIScrollBar,HIObject,HasUserInputFocus)
  7985.     (this,ev);
  7986. }
  7987.  
  7988. /* method: CanReleaseUserInputFocus */
  7989. boolean   CanReleaseUserInputFocus(Environment *ev)
  7990. {
  7991.    return SOM_ResolveD(this,HIScrollBar,HIObject,CanReleaseUserInputFocus)
  7992.     (this,ev);
  7993. }
  7994.  
  7995. /* method: SetUserInputFocusFlags */
  7996. void   SetUserInputFocusFlags(Environment *ev,
  7997.         HIUserInputFocusFlags flags)
  7998. {
  7999.    SOM_ResolveD(this,HIScrollBar,HIObject,SetUserInputFocusFlags)
  8000.     (this,ev,flags);
  8001. }
  8002.  
  8003. /* method: GetUserInputFocusFlags */
  8004. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  8005. {
  8006.    return SOM_ResolveD(this,HIScrollBar,HIObject,GetUserInputFocusFlags)
  8007.     (this,ev);
  8008. }
  8009.  
  8010. /* method: SetTitle */
  8011. OSStatus   SetTitle(Environment *ev,
  8012.         ConstHIImageRef title,
  8013.         HIAdoptionFlags disposalAdoptionFlags)
  8014. {
  8015.    return SOM_ResolveD(this,HIScrollBar,HIObject,SetTitle)
  8016.     (this,ev,title,disposalAdoptionFlags);
  8017. }
  8018.  
  8019. /* method: GetTitle */
  8020. OSStatus   GetTitle(Environment *ev,
  8021.         HIImageRef* title)
  8022. {
  8023.    return SOM_ResolveD(this,HIScrollBar,HIObject,GetTitle)
  8024.     (this,ev,title);
  8025. }
  8026.  
  8027. /* method: Draw */
  8028. void   Draw(Environment *ev,
  8029.         CGrafPtr whichPort,
  8030.         RgnHandle drawRgn)
  8031. {
  8032.    SOM_ResolveD(this,HIScrollBar,HIObject,Draw)
  8033.     (this,ev,whichPort,drawRgn);
  8034. }
  8035.  
  8036. /* method: Erase */
  8037. void   Erase(Environment *ev,
  8038.         CGrafPtr whichPort,
  8039.         RgnHandle eraseRgn)
  8040. {
  8041.    SOM_ResolveD(this,HIScrollBar,HIObject,Erase)
  8042.     (this,ev,whichPort,eraseRgn);
  8043. }
  8044.  
  8045. /* method: Invalidate */
  8046. void   Invalidate(Environment *ev)
  8047. {
  8048.    SOM_ResolveD(this,HIScrollBar,HIObject,Invalidate)
  8049.     (this,ev);
  8050. }
  8051.  
  8052. /* method: GetDrawingMode */
  8053. HIDrawingMode   GetDrawingMode(Environment *ev)
  8054. {
  8055.    return SOM_ResolveD(this,HIScrollBar,HIObject,GetDrawingMode)
  8056.     (this,ev);
  8057. }
  8058.  
  8059. /* method: SetDrawingMode */
  8060. void   SetDrawingMode(Environment *ev,
  8061.         HIDrawingMode drawingMode)
  8062. {
  8063.    SOM_ResolveD(this,HIScrollBar,HIObject,SetDrawingMode)
  8064.     (this,ev,drawingMode);
  8065. }
  8066.  
  8067. /* method: SetBackgroundPattern */
  8068. void   SetBackgroundPattern(Environment *ev,
  8069.         PixPatHandle backgroundPattern)
  8070. {
  8071.    SOM_ResolveD(this,HIScrollBar,HIObject,SetBackgroundPattern)
  8072.     (this,ev,backgroundPattern);
  8073. }
  8074.  
  8075. /* method: GetBackgroundPattern */
  8076. PixPatHandle   GetBackgroundPattern(Environment *ev)
  8077. {
  8078.    return SOM_ResolveD(this,HIScrollBar,HIObject,GetBackgroundPattern)
  8079.     (this,ev);
  8080. }
  8081.  
  8082. /* method: Cut */
  8083. void   Cut(Environment *ev)
  8084. {
  8085.    SOM_ResolveD(this,HIScrollBar,HIObject,Cut)
  8086.     (this,ev);
  8087. }
  8088.  
  8089. /* method: Copy */
  8090. void   Copy(Environment *ev)
  8091. {
  8092.    SOM_ResolveD(this,HIScrollBar,HIObject,Copy)
  8093.     (this,ev);
  8094. }
  8095.  
  8096. /* method: Paste */
  8097. void   Paste(Environment *ev)
  8098. {
  8099.    SOM_ResolveD(this,HIScrollBar,HIObject,Paste)
  8100.     (this,ev);
  8101. }
  8102.  
  8103. /* method: Clear */
  8104. void   Clear(Environment *ev)
  8105. {
  8106.    SOM_ResolveD(this,HIScrollBar,HIObject,Clear)
  8107.     (this,ev);
  8108. }
  8109.  
  8110. /* method: GetClipboardSupportFlags */
  8111. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  8112. {
  8113.    return SOM_ResolveD(this,HIScrollBar,HIObject,GetClipboardSupportFlags)
  8114.     (this,ev);
  8115. }
  8116.  
  8117. /* method: AddStateChangeCallback */
  8118. OSStatus   AddStateChangeCallback(Environment *ev,
  8119.         HIStateChangeCallbackProcPtr changedStateCallback,
  8120.         HIStateChangeCallbackRef* newCallbackRef)
  8121. {
  8122.    return SOM_ResolveD(this,HIScrollBar,HIObject,AddStateChangeCallback)
  8123.     (this,ev,changedStateCallback,newCallbackRef);
  8124. }
  8125.  
  8126. /* method: RemoveStateChangeCallback */
  8127. OSStatus   RemoveStateChangeCallback(Environment *ev,
  8128.         HIStateChangeCallbackRef callbackRefToRemove)
  8129. {
  8130.    return SOM_ResolveD(this,HIScrollBar,HIObject,RemoveStateChangeCallback)
  8131.     (this,ev,callbackRefToRemove);
  8132. }
  8133.  
  8134. /* noself procedure: GetHIObjectFromRefLabel */
  8135. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  8136.         RefLabel* identifier,
  8137.         ItemCount requestedObjects,
  8138.         ItemCount* totalObjects,
  8139.         HIObject** theObjects)
  8140. {
  8141. return ((somTD_HIScrollBar_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  8142.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  8143. }
  8144.  
  8145. /* noself procedure: GetNewHIObject */
  8146. static OSStatus   GetNewHIObject(Environment *ev,
  8147.         AESubDesc* objectInitializer,
  8148.         HIObject** newObject)
  8149. {
  8150. return ((somTD_HIScrollBar_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  8151.     (ev,objectInitializer,newObject);
  8152. }
  8153.  
  8154. /* noself procedure: GetNewHIObjectFromResource */
  8155. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  8156.         ResID objectInitializerResourceID,
  8157.         HIObject** newObject)
  8158. {
  8159. return ((somTD_HIScrollBar_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  8160.     (ev,objectInitializerResourceID,newObject);
  8161. }
  8162.  
  8163. /* method: DrawContent */
  8164. void   DrawContent(Environment *ev,
  8165.         CGrafPtr whichPort,
  8166.         RgnHandle drawRgn)
  8167. {
  8168.    SOM_ResolveD(this,HIScrollBar,HIObject,DrawContent)
  8169.     (this,ev,whichPort,drawRgn);
  8170. }
  8171.  
  8172. /* method: EraseContent */
  8173. void   EraseContent(Environment *ev,
  8174.         CGrafPtr whichPort,
  8175.         RgnHandle regionToErase)
  8176. {
  8177.    SOM_ResolveD(this,HIScrollBar,HIObject,EraseContent)
  8178.     (this,ev,whichPort,regionToErase);
  8179. }
  8180.  
  8181. /* method: TranslatePoint */
  8182. void   TranslatePoint(Environment *ev,
  8183.         HICoordinateSystem translateFrom,
  8184.         HICoordinateSystem translateTo,
  8185.         Point* sourcePoint,
  8186.         Point* translatedPoint)
  8187. {
  8188.    SOM_ResolveD(this,HIScrollBar,HIObject,TranslatePoint)
  8189.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  8190. }
  8191.  
  8192. /* method: TranslateRect */
  8193. void   TranslateRect(Environment *ev,
  8194.         HICoordinateSystem translateFrom,
  8195.         HICoordinateSystem translateTo,
  8196.         Rect* sourceRect,
  8197.         Rect* translatedRect)
  8198. {
  8199.    SOM_ResolveD(this,HIScrollBar,HIObject,TranslateRect)
  8200.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  8201. }
  8202.  
  8203. /* method: StateChanged */
  8204. void   StateChanged(Environment *ev,
  8205.         HIStateChangeCodeCreator selectorCreator,
  8206.         HIStateChangeCode changedCode)
  8207. {
  8208.    SOM_ResolveD(this,HIScrollBar,HIObject,StateChanged)
  8209.     (this,ev,selectorCreator,changedCode);
  8210. }
  8211.  
  8212. /* method: SetClipboardSupportFlags */
  8213. void   SetClipboardSupportFlags(Environment *ev,
  8214.         HIClipboardSupportFlags flags)
  8215. {
  8216.    SOM_ResolveD(this,HIScrollBar,HIObject,SetClipboardSupportFlags)
  8217.     (this,ev,flags);
  8218. }
  8219.  
  8220. /* method: Verify */
  8221. OSStatus   Verify(Environment *ev)
  8222. {
  8223.    return SOM_ResolveD(this,HIScrollBar,HIObject,Verify)
  8224.     (this,ev);
  8225. }
  8226.  
  8227. /* method: somInit */
  8228. void   somInit()
  8229. {
  8230.    SOM_ResolveD(this,HIScrollBar,SOMObject,somInit)
  8231.     (this);
  8232. }
  8233.  
  8234. /* method: somUninit */
  8235. void   somUninit()
  8236. {
  8237.    SOM_ResolveD(this,HIScrollBar,SOMObject,somUninit)
  8238.     (this);
  8239. }
  8240.  
  8241. /* method: somDuplicateReference */
  8242. SOMObject*   somDuplicateReference()
  8243. {
  8244.    return SOM_ResolveD(this,HIScrollBar,SOMObject,somDuplicateReference)
  8245.     (this);
  8246. }
  8247.  
  8248. /* method: somCompareReference */
  8249. boolean   somCompareReference(SOMObject* anObject)
  8250. {
  8251.    return SOM_ResolveD(this,HIScrollBar,SOMObject,somCompareReference)
  8252.     (this,anObject);
  8253. }
  8254.  
  8255. /* method: somRelease */
  8256. SOMObject*   somRelease()
  8257. {
  8258.    return SOM_ResolveD(this,HIScrollBar,SOMObject,somRelease)
  8259.     (this);
  8260. }
  8261.  
  8262. /* method: somFree */
  8263. void   somFree()
  8264. {
  8265.    SOM_ResolveD(this,HIScrollBar,SOMObject,somFree)
  8266.     (this);
  8267. }
  8268.  
  8269. /* method: somCanDelete */
  8270. boolean   somCanDelete()
  8271. {
  8272.    return SOM_ResolveD(this,HIScrollBar,SOMObject,somCanDelete)
  8273.     (this);
  8274. }
  8275.  
  8276. /* method: somGetClass */
  8277. SOMClass*   somGetClass()
  8278. {
  8279.    return SOM_ResolveD(this,HIScrollBar,SOMObject,somGetClass)
  8280.     (this);
  8281. }
  8282.  
  8283. /* method: somGetClassName */
  8284. corbastring   somGetClassName()
  8285. {
  8286.    return SOM_ResolveD(this,HIScrollBar,SOMObject,somGetClassName)
  8287.     (this);
  8288. }
  8289.  
  8290. /* method: somGetSize */
  8291. long   somGetSize()
  8292. {
  8293.    return SOM_ResolveD(this,HIScrollBar,SOMObject,somGetSize)
  8294.     (this);
  8295. }
  8296.  
  8297. /* method: somIsA */
  8298. boolean   somIsA(SOMClass* aClassObj)
  8299. {
  8300.    return SOM_ResolveD(this,HIScrollBar,SOMObject,somIsA)
  8301.     (this,aClassObj);
  8302. }
  8303.  
  8304. /* method: somRespondsTo */
  8305. boolean   somRespondsTo(somId mId)
  8306. {
  8307.    return SOM_ResolveD(this,HIScrollBar,SOMObject,somRespondsTo)
  8308.     (this,mId);
  8309. }
  8310.  
  8311. /* method: somIsInstanceOf */
  8312. boolean   somIsInstanceOf(SOMClass* aClassObj)
  8313. {
  8314.    return SOM_ResolveD(this,HIScrollBar,SOMObject,somIsInstanceOf)
  8315.     (this,aClassObj);
  8316. }
  8317.  
  8318. /* va_list method: somDispatch */
  8319. /* the va_list invocation form */
  8320. boolean   HIScrollBar_somDispatch(somToken* retValue,
  8321.         somId methodId,
  8322.         va_list ap)
  8323. {
  8324.    return SOM_ResolveD(this,HIScrollBar,SOMObject,somDispatch)
  8325.     (this,retValue,methodId,ap);
  8326. }
  8327.  
  8328. /* the varargs invocation form */
  8329. boolean   somDispatch(somToken* retValue,
  8330.         somId methodId,
  8331.         ...)
  8332. {
  8333.    va_list ap;
  8334.    va_start(ap, methodId);
  8335.       boolean __somResult = 
  8336.       (boolean) SOM_ResolveD(this,HIScrollBar,SOMObject,somDispatch)
  8337.     (this,retValue,methodId,ap);
  8338.    va_end(ap);
  8339.    return __somResult;
  8340. }
  8341.  
  8342. /* va_list method: somClassDispatch */
  8343. /* the va_list invocation form */
  8344. boolean   HIScrollBar_somClassDispatch(SOMClass* clsObj,
  8345.         somToken* retValue,
  8346.         somId methodId,
  8347.         va_list ap)
  8348. {
  8349.    return SOM_ResolveD(this,HIScrollBar,SOMObject,somClassDispatch)
  8350.     (this,clsObj,retValue,methodId,ap);
  8351. }
  8352.  
  8353. /* the varargs invocation form */
  8354. boolean   somClassDispatch(SOMClass* clsObj,
  8355.         somToken* retValue,
  8356.         somId methodId,
  8357.         ...)
  8358. {
  8359.    va_list ap;
  8360.    va_start(ap, methodId);
  8361.       boolean __somResult = 
  8362.       (boolean) SOM_ResolveD(this,HIScrollBar,SOMObject,somClassDispatch)
  8363.     (this,clsObj,retValue,methodId,ap);
  8364.    va_end(ap);
  8365.    return __somResult;
  8366. }
  8367.  
  8368. /* method: somCastObj */
  8369. boolean   somCastObj(SOMClass* cls)
  8370. {
  8371.    return SOM_ResolveD(this,HIScrollBar,SOMObject,somCastObj)
  8372.     (this,cls);
  8373. }
  8374.  
  8375. /* method: somResetObj */
  8376. boolean   somResetObj()
  8377. {
  8378.    return SOM_ResolveD(this,HIScrollBar,SOMObject,somResetObj)
  8379.     (this);
  8380. }
  8381.  
  8382. /* method: somPrintSelf */
  8383. SOMObject*   somPrintSelf()
  8384. {
  8385.    return SOM_ResolveD(this,HIScrollBar,SOMObject,somPrintSelf)
  8386.     (this);
  8387. }
  8388.  
  8389. /* method: somDumpSelf */
  8390. void   somDumpSelf(long level)
  8391. {
  8392.    SOM_ResolveD(this,HIScrollBar,SOMObject,somDumpSelf)
  8393.     (this,level);
  8394. }
  8395.  
  8396. /* method: somDumpSelfInt */
  8397. void   somDumpSelfInt(long level)
  8398. {
  8399.    SOM_ResolveD(this,HIScrollBar,SOMObject,somDumpSelfInt)
  8400.     (this,level);
  8401. }
  8402.  
  8403. };   /* HIScrollBar */
  8404.  
  8405.  
  8406.  
  8407. #endif       /* SOM_HIScrollBar_xh */
  8408.  
  8409. #ifndef SOM_HISlider_xh
  8410. #define SOM_HISlider_xh
  8411.  
  8412. class HISlider;
  8413.  
  8414. #define HISlider_MajorVersion 0
  8415. #define HISlider_MinorVersion 0
  8416.  
  8417. /* C++ SOM defs */
  8418. #include <somcls.xh>
  8419. #include <somcm.xh>
  8420.  
  8421. /* C++ parent defs */
  8422. #ifndef SOM_HIControl_xh
  8423. #include <HIControls.xh>
  8424. #endif
  8425.  
  8426. #ifndef HISlider_API
  8427. #define HISlider_API
  8428. /*
  8429.  * -- The Class API
  8430.  */
  8431.  
  8432. /*
  8433.  * Start of user-defined types:
  8434.  */
  8435.  
  8436. /*
  8437.  * End of user-defined types.
  8438.  */
  8439.  
  8440. #ifdef OLDIBMSOMAPISUPPORT
  8441. #define HISliderCClassData HISliderClassData
  8442. #define HISliderNewClass(major,minor) somNewVersionedClassReference(HISlider,major,minor)
  8443. #endif
  8444.  
  8445. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  8446. #define HISliderMetaClass SOMClass
  8447.  
  8448. #if PRAGMA_ALIGN_SUPPORTED
  8449. #  pragma options align=power
  8450. #endif
  8451.  
  8452. /* The API to the HISlider class object, and the methods it introduces. */
  8453. SOMEXTERN struct HISliderClassDataStructure {
  8454. #ifdef OLDIBMSOMAPISUPPORT
  8455.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  8456. #else
  8457.     long zero;
  8458. #endif
  8459.     somStaticClassInfo *sci;
  8460.     somDToken        instanceDataToken;
  8461.     long reserved [3];
  8462.     somMToken InitSlider;
  8463. } SOMDLINK HISliderClassData;
  8464.  
  8465. #if PRAGMA_ALIGN_SUPPORTED
  8466. #  pragma options align=reset
  8467. #endif
  8468.  
  8469. #if !defined(HISlider_Class_Source) && !defined(SOM_Module_hicontrols_Source)
  8470. #if PRAGMA_IMPORT_SUPPORTED
  8471. #pragma import list HISliderClassData
  8472. #endif
  8473. #endif
  8474.  
  8475.  
  8476. /*
  8477.  * -- Typedefs for HISlider Method Procedures
  8478.  */
  8479. SOMEXTERN {
  8480. typedef OSStatus   (* SOMLINK somTD_HISlider_InitSlider)(HISlider *somSelf, Environment *ev,
  8481.         RefLabel* identifier,
  8482.         HIWindow* window,
  8483.         Rect* bounds,
  8484.         SInt32 value,
  8485.         SInt32 minimumValue,
  8486.         SInt32 maximumValue);
  8487.  
  8488. /*
  8489.  * -- Typedefs for Inherited Methods
  8490.  */
  8491. typedef OSStatus   (* SOMLINK somTD_HISlider_InitControl)(HISlider *somSelf, Environment *ev,
  8492.         RefLabel* identifier,
  8493.         HIWindow* window,
  8494.         Rect* bounds,
  8495.         SInt32 value,
  8496.         SInt32 minimumValue,
  8497.         SInt32 maximumValue);
  8498. typedef void   (* SOMLINK somTD_HISlider_SetValue)(HISlider *somSelf, Environment *ev,
  8499.         SInt32 newValue);
  8500. typedef SInt32   (* SOMLINK somTD_HISlider_GetValue)(HISlider *somSelf, Environment *ev);
  8501. typedef void   (* SOMLINK somTD_HISlider_SetMinimum)(HISlider *somSelf, Environment *ev,
  8502.         SInt32 newMinimum);
  8503. typedef SInt32   (* SOMLINK somTD_HISlider_GetMinimum)(HISlider *somSelf, Environment *ev);
  8504. typedef void   (* SOMLINK somTD_HISlider_SetMaximum)(HISlider *somSelf, Environment *ev,
  8505.         SInt32 newMaximum);
  8506. typedef SInt32   (* SOMLINK somTD_HISlider_GetMaximum)(HISlider *somSelf, Environment *ev);
  8507. typedef void   (* SOMLINK somTD_HISlider_SimulateSelection)(HISlider *somSelf, Environment *ev);
  8508. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HISlider_GetEmbeddingParent)(HISlider *somSelf, Environment *ev);
  8509. typedef OSStatus   (* SOMLINK somTD_HISlider_InitPanel)(HISlider *somSelf, Environment *ev,
  8510.         RefLabel* identifier,
  8511.         HIWindow* window,
  8512.         Rect* bounds);
  8513. typedef OSStatus   (* SOMLINK somTD_HISlider_RegisterInterestInAppleEvent)(HISlider *somSelf, Environment *ev,
  8514.         AEHandlerTableRef table,
  8515.         AEEventClass eventClass,
  8516.         AEEventID eventID,
  8517.         HIEventRoutingType eventRouting);
  8518. typedef boolean   (* SOMLINK somTD_HISlider_HasValidContent)(HISlider *somSelf, Environment *ev);
  8519. typedef OSStatus   (* SOMLINK somTD_HISlider_GetDeepCollectionItemData)(HISlider *somSelf, Environment *ev,
  8520.         CollectionTag tag,
  8521.         SInt32 id,
  8522.         ByteCount sizeAllowed,
  8523.         ByteCount* sizeReturned,
  8524.         void* itemData);
  8525. typedef HIWindow*   (* SOMLINK somTD_HISlider_GetWindow)(HISlider *somSelf, Environment *ev);
  8526. typedef CGrafPtr   (* SOMLINK somTD_HISlider_GetPort)(HISlider *somSelf, Environment *ev);
  8527. typedef void   (* SOMLINK somTD_HISlider_GetRefLabel)(HISlider *somSelf, Environment *ev,
  8528.         RefLabel* identifier);
  8529. typedef Collection   (* SOMLINK somTD_HISlider_GetCollection)(HISlider *somSelf, Environment *ev);
  8530. typedef OSStatus   (* SOMLINK somTD_HISlider_Init)(HISlider *somSelf, Environment *ev,
  8531.         RefLabel* identifier,
  8532.         Rect* boundingRect);
  8533. typedef void   (* SOMLINK somTD_HISlider_Terminate)(HISlider *somSelf, Environment *ev);
  8534. typedef HIObject*   (* SOMLINK somTD_HISlider_Clone)(HISlider *somSelf, Environment *ev);
  8535. typedef void   (* SOMLINK somTD_HISlider_Release)(HISlider *somSelf, Environment *ev);
  8536. typedef ItemCount   (* SOMLINK somTD_HISlider_GetOwnerCount)(HISlider *somSelf, Environment *ev);
  8537. typedef OSStatus   (* SOMLINK somTD_HISlider_InitFromAERecord)(HISlider *somSelf, Environment *ev,
  8538.         AESubDesc* baseInitializerData,
  8539.         AESubDesc* initializerDataForClass,
  8540.         HIAERecordDataFormat dataFormat);
  8541. typedef OSStatus   (* SOMLINK somTD_HISlider_WriteToAERecord)(HISlider *somSelf, Environment *ev,
  8542.         AERecord* dataForSubclass,
  8543.         AERecord* objectData,
  8544.         HIAERecordDataFormat dataFormat);
  8545. typedef void   (* SOMLINK somTD_HISlider_CalculateOptimalSize)(HISlider *somSelf, Environment *ev,
  8546.         SInt16* optimalWidth,
  8547.         SInt16* optimalHeight);
  8548. typedef void   (* SOMLINK somTD_HISlider_GetBoundingRect)(HISlider *somSelf, Environment *ev,
  8549.         HICoordinateSystem coordinate,
  8550.         Rect* boundingRect);
  8551. typedef void   (* SOMLINK somTD_HISlider_SetBoundingRect)(HISlider *somSelf, Environment *ev,
  8552.         HICoordinateSystem coordinate,
  8553.         Rect* newBoundingRect);
  8554. typedef void   (* SOMLINK somTD_HISlider_SetPosition)(HISlider *somSelf, Environment *ev,
  8555.         HICoordinateSystem coordinate,
  8556.         Point* newPosition);
  8557. typedef void   (* SOMLINK somTD_HISlider_SetSize)(HISlider *somSelf, Environment *ev,
  8558.         SInt16 width,
  8559.         SInt16 height);
  8560. typedef void   (* SOMLINK somTD_HISlider_GetUpdateRect)(HISlider *somSelf, Environment *ev,
  8561.         HICoordinateSystem coordinate,
  8562.         Rect* updateRect);
  8563. typedef void   (* SOMLINK somTD_HISlider_Enable)(HISlider *somSelf, Environment *ev);
  8564. typedef void   (* SOMLINK somTD_HISlider_Disable)(HISlider *somSelf, Environment *ev);
  8565. typedef boolean   (* SOMLINK somTD_HISlider_IsEnabled)(HISlider *somSelf, Environment *ev);
  8566. typedef void   (* SOMLINK somTD_HISlider_Show)(HISlider *somSelf, Environment *ev);
  8567. typedef void   (* SOMLINK somTD_HISlider_Hide)(HISlider *somSelf, Environment *ev);
  8568. typedef boolean   (* SOMLINK somTD_HISlider_IsVisible)(HISlider *somSelf, Environment *ev);
  8569. typedef OSStatus   (* SOMLINK somTD_HISlider_HandleAppleEvent)(HISlider *somSelf, Environment *ev,
  8570.         AEEventClass eventClass,
  8571.         AEEventID eventID,
  8572.         AppleEvent* theEvent,
  8573.         AppleEvent* reply,
  8574.         AEHandlerTableRef handlerTableRef);
  8575. typedef OSStatus   (* SOMLINK somTD_HISlider_HandleActivate)(HISlider *somSelf, Environment *ev,
  8576.         AppleEvent* theEvent,
  8577.         AppleEvent* reply,
  8578.         AEHandlerTableRef handlerTableRef);
  8579. typedef OSStatus   (* SOMLINK somTD_HISlider_HandleDeactivate)(HISlider *somSelf, Environment *ev,
  8580.         AppleEvent* theEvent,
  8581.         AppleEvent* reply,
  8582.         AEHandlerTableRef handlerTableRef);
  8583. typedef OSStatus   (* SOMLINK somTD_HISlider_HandleNavigation)(HISlider *somSelf, Environment *ev,
  8584.         SInt8 key,
  8585.         SInt8 keyCode,
  8586.         EventModifiers modifiers,
  8587.         AppleEvent* theEvent,
  8588.         AppleEvent* reply,
  8589.         AEHandlerTableRef handlerTableRef);
  8590. typedef OSStatus   (* SOMLINK somTD_HISlider_HandleMouseDownInContent)(HISlider *somSelf, Environment *ev,
  8591.         Point* portLocalWhere,
  8592.         EventModifiers modifiers,
  8593.         AppleEvent* theEvent,
  8594.         AppleEvent* reply,
  8595.         AEHandlerTableRef handlerTableRef);
  8596. typedef OSStatus   (* SOMLINK somTD_HISlider_HandleMouseMovedInContent)(HISlider *somSelf, Environment *ev,
  8597.         Point* portLocalWhere,
  8598.         EventModifiers modifiers,
  8599.         AppleEvent* theEvent,
  8600.         AppleEvent* reply,
  8601.         AEHandlerTableRef handlerTableRef);
  8602. typedef OSStatus   (* SOMLINK somTD_HISlider_HandleMouseStoppedMovingInContent)(HISlider *somSelf, Environment *ev,
  8603.         Point* portLocalWhere,
  8604.         EventModifiers modifiers,
  8605.         AppleEvent* theEvent,
  8606.         AppleEvent* reply,
  8607.         AEHandlerTableRef handlerTableRef);
  8608. typedef OSStatus   (* SOMLINK somTD_HISlider_HandleMouseUpInContent)(HISlider *somSelf, Environment *ev,
  8609.         Point* portLocalWhere,
  8610.         EventModifiers modifiers,
  8611.         AppleEvent* theEvent,
  8612.         AppleEvent* reply,
  8613.         AEHandlerTableRef handlerTableRef);
  8614. typedef void   (* SOMLINK somTD_HISlider_TakeUserInputFocus)(HISlider *somSelf, Environment *ev);
  8615. typedef void   (* SOMLINK somTD_HISlider_ReleaseUserInputFocus)(HISlider *somSelf, Environment *ev);
  8616. typedef boolean   (* SOMLINK somTD_HISlider_HasUserInputFocus)(HISlider *somSelf, Environment *ev);
  8617. typedef boolean   (* SOMLINK somTD_HISlider_CanReleaseUserInputFocus)(HISlider *somSelf, Environment *ev);
  8618. typedef void   (* SOMLINK somTD_HISlider_SetUserInputFocusFlags)(HISlider *somSelf, Environment *ev,
  8619.         HIUserInputFocusFlags flags);
  8620. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HISlider_GetUserInputFocusFlags)(HISlider *somSelf, Environment *ev);
  8621. typedef OSStatus   (* SOMLINK somTD_HISlider_SetTitle)(HISlider *somSelf, Environment *ev,
  8622.         ConstHIImageRef title,
  8623.         HIAdoptionFlags disposalAdoptionFlags);
  8624. typedef OSStatus   (* SOMLINK somTD_HISlider_GetTitle)(HISlider *somSelf, Environment *ev,
  8625.         HIImageRef* title);
  8626. typedef void   (* SOMLINK somTD_HISlider_Draw)(HISlider *somSelf, Environment *ev,
  8627.         CGrafPtr whichPort,
  8628.         RgnHandle drawRgn);
  8629. typedef void   (* SOMLINK somTD_HISlider_Erase)(HISlider *somSelf, Environment *ev,
  8630.         CGrafPtr whichPort,
  8631.         RgnHandle eraseRgn);
  8632. typedef void   (* SOMLINK somTD_HISlider_Invalidate)(HISlider *somSelf, Environment *ev);
  8633. typedef HIDrawingMode   (* SOMLINK somTD_HISlider_GetDrawingMode)(HISlider *somSelf, Environment *ev);
  8634. typedef void   (* SOMLINK somTD_HISlider_SetDrawingMode)(HISlider *somSelf, Environment *ev,
  8635.         HIDrawingMode drawingMode);
  8636. typedef void   (* SOMLINK somTD_HISlider_SetBackgroundPattern)(HISlider *somSelf, Environment *ev,
  8637.         PixPatHandle backgroundPattern);
  8638. typedef PixPatHandle   (* SOMLINK somTD_HISlider_GetBackgroundPattern)(HISlider *somSelf, Environment *ev);
  8639. typedef void   (* SOMLINK somTD_HISlider_Cut)(HISlider *somSelf, Environment *ev);
  8640. typedef void   (* SOMLINK somTD_HISlider_Copy)(HISlider *somSelf, Environment *ev);
  8641. typedef void   (* SOMLINK somTD_HISlider_Paste)(HISlider *somSelf, Environment *ev);
  8642. typedef void   (* SOMLINK somTD_HISlider_Clear)(HISlider *somSelf, Environment *ev);
  8643. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HISlider_GetClipboardSupportFlags)(HISlider *somSelf, Environment *ev);
  8644. typedef OSStatus   (* SOMLINK somTD_HISlider_AddStateChangeCallback)(HISlider *somSelf, Environment *ev,
  8645.         HIStateChangeCallbackProcPtr changedStateCallback,
  8646.         HIStateChangeCallbackRef* newCallbackRef);
  8647. typedef OSStatus   (* SOMLINK somTD_HISlider_RemoveStateChangeCallback)(HISlider *somSelf, Environment *ev,
  8648.         HIStateChangeCallbackRef callbackRefToRemove);
  8649. typedef OSStatus   (* SOMLINK somTD_HISlider_GetHIObjectFromRefLabel)(Environment *ev,
  8650.         RefLabel* identifier,
  8651.         ItemCount requestedObjects,
  8652.         ItemCount* totalObjects,
  8653.         HIObject** theObjects);
  8654. typedef OSStatus   (* SOMLINK somTD_HISlider_GetNewHIObject)(Environment *ev,
  8655.         AESubDesc* objectInitializer,
  8656.         HIObject** newObject);
  8657. typedef OSStatus   (* SOMLINK somTD_HISlider_GetNewHIObjectFromResource)(Environment *ev,
  8658.         ResID objectInitializerResourceID,
  8659.         HIObject** newObject);
  8660. typedef void   (* SOMLINK somTD_HISlider_DrawContent)(HISlider *somSelf, Environment *ev,
  8661.         CGrafPtr whichPort,
  8662.         RgnHandle drawRgn);
  8663. typedef void   (* SOMLINK somTD_HISlider_EraseContent)(HISlider *somSelf, Environment *ev,
  8664.         CGrafPtr whichPort,
  8665.         RgnHandle regionToErase);
  8666. typedef void   (* SOMLINK somTD_HISlider_TranslatePoint)(HISlider *somSelf, Environment *ev,
  8667.         HICoordinateSystem translateFrom,
  8668.         HICoordinateSystem translateTo,
  8669.         Point* sourcePoint,
  8670.         Point* translatedPoint);
  8671. typedef void   (* SOMLINK somTD_HISlider_TranslateRect)(HISlider *somSelf, Environment *ev,
  8672.         HICoordinateSystem translateFrom,
  8673.         HICoordinateSystem translateTo,
  8674.         Rect* sourceRect,
  8675.         Rect* translatedRect);
  8676. typedef void   (* SOMLINK somTD_HISlider_StateChanged)(HISlider *somSelf, Environment *ev,
  8677.         HIStateChangeCodeCreator selectorCreator,
  8678.         HIStateChangeCode changedCode);
  8679. typedef void   (* SOMLINK somTD_HISlider_SetClipboardSupportFlags)(HISlider *somSelf, Environment *ev,
  8680.         HIClipboardSupportFlags flags);
  8681. typedef OSStatus   (* SOMLINK somTD_HISlider_Verify)(HISlider *somSelf, Environment *ev);
  8682. typedef void   (* SOMLINK somTD_HISlider_somInit)(HISlider *somSelf);
  8683. typedef void   (* SOMLINK somTD_HISlider_somUninit)(HISlider *somSelf);
  8684. typedef SOMObject*   (* SOMLINK somTD_HISlider_somDuplicateReference)(HISlider *somSelf);
  8685. typedef boolean   (* SOMLINK somTD_HISlider_somCompareReference)(HISlider *somSelf,
  8686.         SOMObject* anObject);
  8687. typedef SOMObject*   (* SOMLINK somTD_HISlider_somRelease)(HISlider *somSelf);
  8688. typedef void   (* SOMLINK somTD_HISlider_somFree)(HISlider *somSelf);
  8689. typedef boolean   (* SOMLINK somTD_HISlider_somCanDelete)(HISlider *somSelf);
  8690. typedef SOMClass*   (* SOMLINK somTD_HISlider_somGetClass)(HISlider *somSelf);
  8691. typedef corbastring   (* SOMLINK somTD_HISlider_somGetClassName)(HISlider *somSelf);
  8692. typedef long   (* SOMLINK somTD_HISlider_somGetSize)(HISlider *somSelf);
  8693. typedef boolean   (* SOMLINK somTD_HISlider_somIsA)(HISlider *somSelf,
  8694.         SOMClass* aClassObj);
  8695. typedef boolean   (* SOMLINK somTD_HISlider_somRespondsTo)(HISlider *somSelf,
  8696.         somId mId);
  8697. typedef boolean   (* SOMLINK somTD_HISlider_somIsInstanceOf)(HISlider *somSelf,
  8698.         SOMClass* aClassObj);
  8699. typedef boolean   (* SOMLINK somTD_HISlider_somDispatch)(HISlider *somSelf,
  8700.         somToken* retValue,
  8701.         somId methodId,
  8702.         va_list ap);
  8703. typedef boolean   (* SOMLINK somTD_HISlider_somClassDispatch)(HISlider *somSelf,
  8704.         SOMClass* clsObj,
  8705.         somToken* retValue,
  8706.         somId methodId,
  8707.         va_list ap);
  8708. typedef boolean   (* SOMLINK somTD_HISlider_somCastObj)(HISlider *somSelf,
  8709.         SOMClass* cls);
  8710. typedef boolean   (* SOMLINK somTD_HISlider_somResetObj)(HISlider *somSelf);
  8711. typedef SOMObject*   (* SOMLINK somTD_HISlider_somPrintSelf)(HISlider *somSelf);
  8712. typedef void   (* SOMLINK somTD_HISlider_somDumpSelf)(HISlider *somSelf,
  8713.         long level);
  8714. typedef void   (* SOMLINK somTD_HISlider_somDumpSelfInt)(HISlider *somSelf,
  8715.         long level);
  8716. }
  8717.  
  8718. #endif /* HISlider_API */
  8719.  
  8720.  
  8721. /*
  8722.  * -- This emitter treats Method Tokens as Thunks by default.
  8723.  * -- Use the sc modifier "nothunks" to change this default
  8724.  */
  8725. #undef somresolve_
  8726. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  8727.  
  8728. /*
  8729.  * -- The C++ Wrapper Class for HISlider
  8730.  */
  8731. class HISlider : public HIControl
  8732. {
  8733. public:
  8734.  
  8735. // HISlider::new registers use of the class object, and then uses somNew
  8736. // to allocate memory and load the object method table pointer. 
  8737. void *operator new(size_t size)
  8738. {
  8739.     SOM_IgnoreWarning(size);
  8740.     // Allocate memory using the default allocator for HISlider, and
  8741.     // clear mem & set method table pointer, call basic initialization
  8742.     return (void*) somNewObject(HISlider);
  8743. }
  8744.  
  8745. // HISlider::delete uses the default deallocator for the object's class.
  8746. void operator delete(void * obj)
  8747. {
  8748.     if (obj) {
  8749.         SOM_Resolve(obj,SOMObject,somFree)
  8750.            ( (SOMObject*) obj );
  8751.     }
  8752. }
  8753.  
  8754. /* method: InitSlider */
  8755. OSStatus   InitSlider(Environment *ev,
  8756.         RefLabel* identifier,
  8757.         HIWindow* window,
  8758.         Rect* bounds,
  8759.         SInt32 value,
  8760.         SInt32 minimumValue,
  8761.         SInt32 maximumValue)
  8762. {
  8763.    return SOM_ResolveD(this,HISlider,HISlider,InitSlider)
  8764.     (this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
  8765. }
  8766.  
  8767.  
  8768. /*
  8769.  * -- Inherited methods
  8770.  */
  8771. /* method: InitControl */
  8772. OSStatus   InitControl(Environment *ev,
  8773.         RefLabel* identifier,
  8774.         HIWindow* window,
  8775.         Rect* bounds,
  8776.         SInt32 value,
  8777.         SInt32 minimumValue,
  8778.         SInt32 maximumValue)
  8779. {
  8780.    return SOM_ResolveD(this,HISlider,HIControl,InitControl)
  8781.     (this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
  8782. }
  8783.  
  8784. /* method: SetValue */
  8785. void   SetValue(Environment *ev,
  8786.         SInt32 newValue)
  8787. {
  8788.    SOM_ResolveD(this,HISlider,HIControl,SetValue)
  8789.     (this,ev,newValue);
  8790. }
  8791.  
  8792. /* method: GetValue */
  8793. SInt32   GetValue(Environment *ev)
  8794. {
  8795.    return SOM_ResolveD(this,HISlider,HIControl,GetValue)
  8796.     (this,ev);
  8797. }
  8798.  
  8799. /* method: SetMinimum */
  8800. void   SetMinimum(Environment *ev,
  8801.         SInt32 newMinimum)
  8802. {
  8803.    SOM_ResolveD(this,HISlider,HIControl,SetMinimum)
  8804.     (this,ev,newMinimum);
  8805. }
  8806.  
  8807. /* method: GetMinimum */
  8808. SInt32   GetMinimum(Environment *ev)
  8809. {
  8810.    return SOM_ResolveD(this,HISlider,HIControl,GetMinimum)
  8811.     (this,ev);
  8812. }
  8813.  
  8814. /* method: SetMaximum */
  8815. void   SetMaximum(Environment *ev,
  8816.         SInt32 newMaximum)
  8817. {
  8818.    SOM_ResolveD(this,HISlider,HIControl,SetMaximum)
  8819.     (this,ev,newMaximum);
  8820. }
  8821.  
  8822. /* method: GetMaximum */
  8823. SInt32   GetMaximum(Environment *ev)
  8824. {
  8825.    return SOM_ResolveD(this,HISlider,HIControl,GetMaximum)
  8826.     (this,ev);
  8827. }
  8828.  
  8829. /* method: SimulateSelection */
  8830. void   SimulateSelection(Environment *ev)
  8831. {
  8832.    SOM_ResolveD(this,HISlider,HIControl,SimulateSelection)
  8833.     (this,ev);
  8834. }
  8835.  
  8836. /* method: GetEmbeddingParent */
  8837. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  8838. {
  8839.    return SOM_ResolveD(this,HISlider,HIPanel,GetEmbeddingParent)
  8840.     (this,ev);
  8841. }
  8842.  
  8843. /* method: InitPanel */
  8844. OSStatus   InitPanel(Environment *ev,
  8845.         RefLabel* identifier,
  8846.         HIWindow* window,
  8847.         Rect* bounds)
  8848. {
  8849.    return SOM_ResolveD(this,HISlider,HIPanel,InitPanel)
  8850.     (this,ev,identifier,window,bounds);
  8851. }
  8852.  
  8853. /* method: RegisterInterestInAppleEvent */
  8854. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  8855.         AEHandlerTableRef table,
  8856.         AEEventClass eventClass,
  8857.         AEEventID eventID,
  8858.         HIEventRoutingType eventRouting)
  8859. {
  8860.    return SOM_ResolveD(this,HISlider,HIPanel,RegisterInterestInAppleEvent)
  8861.     (this,ev,table,eventClass,eventID,eventRouting);
  8862. }
  8863.  
  8864. /* method: HasValidContent */
  8865. boolean   HasValidContent(Environment *ev)
  8866. {
  8867.    return SOM_ResolveD(this,HISlider,HIPanel,HasValidContent)
  8868.     (this,ev);
  8869. }
  8870.  
  8871. /* method: GetDeepCollectionItemData */
  8872. OSStatus   GetDeepCollectionItemData(Environment *ev,
  8873.         CollectionTag tag,
  8874.         SInt32 id,
  8875.         ByteCount sizeAllowed,
  8876.         ByteCount* sizeReturned,
  8877.         void* itemData)
  8878. {
  8879.    return SOM_ResolveD(this,HISlider,HIPanel,GetDeepCollectionItemData)
  8880.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  8881. }
  8882.  
  8883. /* method: GetWindow */
  8884. HIWindow*   GetWindow(Environment *ev)
  8885. {
  8886.    return SOM_ResolveD(this,HISlider,HIObject,GetWindow)
  8887.     (this,ev);
  8888. }
  8889.  
  8890. /* method: GetPort */
  8891. CGrafPtr   GetPort(Environment *ev)
  8892. {
  8893.    return SOM_ResolveD(this,HISlider,HIObject,GetPort)
  8894.     (this,ev);
  8895. }
  8896.  
  8897. /* method: GetRefLabel */
  8898. void   GetRefLabel(Environment *ev,
  8899.         RefLabel* identifier)
  8900. {
  8901.    SOM_ResolveD(this,HISlider,HIObject,GetRefLabel)
  8902.     (this,ev,identifier);
  8903. }
  8904.  
  8905. /* method: GetCollection */
  8906. Collection   GetCollection(Environment *ev)
  8907. {
  8908.    return SOM_ResolveD(this,HISlider,HIObject,GetCollection)
  8909.     (this,ev);
  8910. }
  8911.  
  8912. /* method: Init */
  8913. OSStatus   Init(Environment *ev,
  8914.         RefLabel* identifier,
  8915.         Rect* boundingRect)
  8916. {
  8917.    return SOM_ResolveD(this,HISlider,HIObject,Init)
  8918.     (this,ev,identifier,boundingRect);
  8919. }
  8920.  
  8921. /* method: Terminate */
  8922. void   Terminate(Environment *ev)
  8923. {
  8924.    SOM_ResolveD(this,HISlider,HIObject,Terminate)
  8925.     (this,ev);
  8926. }
  8927.  
  8928. /* method: Clone */
  8929. HIObject*   Clone(Environment *ev)
  8930. {
  8931.    return SOM_ResolveD(this,HISlider,HIObject,Clone)
  8932.     (this,ev);
  8933. }
  8934.  
  8935. /* method: Release */
  8936. void   Release(Environment *ev)
  8937. {
  8938.    SOM_ResolveD(this,HISlider,HIObject,Release)
  8939.     (this,ev);
  8940. }
  8941.  
  8942. /* method: GetOwnerCount */
  8943. ItemCount   GetOwnerCount(Environment *ev)
  8944. {
  8945.    return SOM_ResolveD(this,HISlider,HIObject,GetOwnerCount)
  8946.     (this,ev);
  8947. }
  8948.  
  8949. /* method: InitFromAERecord */
  8950. OSStatus   InitFromAERecord(Environment *ev,
  8951.         AESubDesc* baseInitializerData,
  8952.         AESubDesc* initializerDataForClass,
  8953.         HIAERecordDataFormat dataFormat)
  8954. {
  8955.    return SOM_ResolveD(this,HISlider,HIObject,InitFromAERecord)
  8956.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  8957. }
  8958.  
  8959. /* method: WriteToAERecord */
  8960. OSStatus   WriteToAERecord(Environment *ev,
  8961.         AERecord* dataForSubclass,
  8962.         AERecord* objectData,
  8963.         HIAERecordDataFormat dataFormat)
  8964. {
  8965.    return SOM_ResolveD(this,HISlider,HIObject,WriteToAERecord)
  8966.     (this,ev,dataForSubclass,objectData,dataFormat);
  8967. }
  8968.  
  8969. /* method: CalculateOptimalSize */
  8970. void   CalculateOptimalSize(Environment *ev,
  8971.         SInt16* optimalWidth,
  8972.         SInt16* optimalHeight)
  8973. {
  8974.    SOM_ResolveD(this,HISlider,HIObject,CalculateOptimalSize)
  8975.     (this,ev,optimalWidth,optimalHeight);
  8976. }
  8977.  
  8978. /* method: GetBoundingRect */
  8979. void   GetBoundingRect(Environment *ev,
  8980.         HICoordinateSystem coordinate,
  8981.         Rect* boundingRect)
  8982. {
  8983.    SOM_ResolveD(this,HISlider,HIObject,GetBoundingRect)
  8984.     (this,ev,coordinate,boundingRect);
  8985. }
  8986.  
  8987. /* method: SetBoundingRect */
  8988. void   SetBoundingRect(Environment *ev,
  8989.         HICoordinateSystem coordinate,
  8990.         Rect* newBoundingRect)
  8991. {
  8992.    SOM_ResolveD(this,HISlider,HIObject,SetBoundingRect)
  8993.     (this,ev,coordinate,newBoundingRect);
  8994. }
  8995.  
  8996. /* method: SetPosition */
  8997. void   SetPosition(Environment *ev,
  8998.         HICoordinateSystem coordinate,
  8999.         Point* newPosition)
  9000. {
  9001.    SOM_ResolveD(this,HISlider,HIObject,SetPosition)
  9002.     (this,ev,coordinate,newPosition);
  9003. }
  9004.  
  9005. /* method: SetSize */
  9006. void   SetSize(Environment *ev,
  9007.         SInt16 width,
  9008.         SInt16 height)
  9009. {
  9010.    SOM_ResolveD(this,HISlider,HIObject,SetSize)
  9011.     (this,ev,width,height);
  9012. }
  9013.  
  9014. /* method: GetUpdateRect */
  9015. void   GetUpdateRect(Environment *ev,
  9016.         HICoordinateSystem coordinate,
  9017.         Rect* updateRect)
  9018. {
  9019.    SOM_ResolveD(this,HISlider,HIObject,GetUpdateRect)
  9020.     (this,ev,coordinate,updateRect);
  9021. }
  9022.  
  9023. /* method: Enable */
  9024. void   Enable(Environment *ev)
  9025. {
  9026.    SOM_ResolveD(this,HISlider,HIObject,Enable)
  9027.     (this,ev);
  9028. }
  9029.  
  9030. /* method: Disable */
  9031. void   Disable(Environment *ev)
  9032. {
  9033.    SOM_ResolveD(this,HISlider,HIObject,Disable)
  9034.     (this,ev);
  9035. }
  9036.  
  9037. /* method: IsEnabled */
  9038. boolean   IsEnabled(Environment *ev)
  9039. {
  9040.    return SOM_ResolveD(this,HISlider,HIObject,IsEnabled)
  9041.     (this,ev);
  9042. }
  9043.  
  9044. /* method: Show */
  9045. void   Show(Environment *ev)
  9046. {
  9047.    SOM_ResolveD(this,HISlider,HIObject,Show)
  9048.     (this,ev);
  9049. }
  9050.  
  9051. /* method: Hide */
  9052. void   Hide(Environment *ev)
  9053. {
  9054.    SOM_ResolveD(this,HISlider,HIObject,Hide)
  9055.     (this,ev);
  9056. }
  9057.  
  9058. /* method: IsVisible */
  9059. boolean   IsVisible(Environment *ev)
  9060. {
  9061.    return SOM_ResolveD(this,HISlider,HIObject,IsVisible)
  9062.     (this,ev);
  9063. }
  9064.  
  9065. /* method: HandleAppleEvent */
  9066. OSStatus   HandleAppleEvent(Environment *ev,
  9067.         AEEventClass eventClass,
  9068.         AEEventID eventID,
  9069.         AppleEvent* theEvent,
  9070.         AppleEvent* reply,
  9071.         AEHandlerTableRef handlerTableRef)
  9072. {
  9073.    return SOM_ResolveD(this,HISlider,HIObject,HandleAppleEvent)
  9074.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  9075. }
  9076.  
  9077. /* method: HandleActivate */
  9078. OSStatus   HandleActivate(Environment *ev,
  9079.         AppleEvent* theEvent,
  9080.         AppleEvent* reply,
  9081.         AEHandlerTableRef handlerTableRef)
  9082. {
  9083.    return SOM_ResolveD(this,HISlider,HIObject,HandleActivate)
  9084.     (this,ev,theEvent,reply,handlerTableRef);
  9085. }
  9086.  
  9087. /* method: HandleDeactivate */
  9088. OSStatus   HandleDeactivate(Environment *ev,
  9089.         AppleEvent* theEvent,
  9090.         AppleEvent* reply,
  9091.         AEHandlerTableRef handlerTableRef)
  9092. {
  9093.    return SOM_ResolveD(this,HISlider,HIObject,HandleDeactivate)
  9094.     (this,ev,theEvent,reply,handlerTableRef);
  9095. }
  9096.  
  9097. /* method: HandleNavigation */
  9098. OSStatus   HandleNavigation(Environment *ev,
  9099.         SInt8 key,
  9100.         SInt8 keyCode,
  9101.         EventModifiers modifiers,
  9102.         AppleEvent* theEvent,
  9103.         AppleEvent* reply,
  9104.         AEHandlerTableRef handlerTableRef)
  9105. {
  9106.    return SOM_ResolveD(this,HISlider,HIObject,HandleNavigation)
  9107.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  9108. }
  9109.  
  9110. /* method: HandleMouseDownInContent */
  9111. OSStatus   HandleMouseDownInContent(Environment *ev,
  9112.         Point* portLocalWhere,
  9113.         EventModifiers modifiers,
  9114.         AppleEvent* theEvent,
  9115.         AppleEvent* reply,
  9116.         AEHandlerTableRef handlerTableRef)
  9117. {
  9118.    return SOM_ResolveD(this,HISlider,HIObject,HandleMouseDownInContent)
  9119.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  9120. }
  9121.  
  9122. /* method: HandleMouseMovedInContent */
  9123. OSStatus   HandleMouseMovedInContent(Environment *ev,
  9124.         Point* portLocalWhere,
  9125.         EventModifiers modifiers,
  9126.         AppleEvent* theEvent,
  9127.         AppleEvent* reply,
  9128.         AEHandlerTableRef handlerTableRef)
  9129. {
  9130.    return SOM_ResolveD(this,HISlider,HIObject,HandleMouseMovedInContent)
  9131.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  9132. }
  9133.  
  9134. /* method: HandleMouseStoppedMovingInContent */
  9135. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  9136.         Point* portLocalWhere,
  9137.         EventModifiers modifiers,
  9138.         AppleEvent* theEvent,
  9139.         AppleEvent* reply,
  9140.         AEHandlerTableRef handlerTableRef)
  9141. {
  9142.    return SOM_ResolveD(this,HISlider,HIObject,HandleMouseStoppedMovingInContent)
  9143.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  9144. }
  9145.  
  9146. /* method: HandleMouseUpInContent */
  9147. OSStatus   HandleMouseUpInContent(Environment *ev,
  9148.         Point* portLocalWhere,
  9149.         EventModifiers modifiers,
  9150.         AppleEvent* theEvent,
  9151.         AppleEvent* reply,
  9152.         AEHandlerTableRef handlerTableRef)
  9153. {
  9154.    return SOM_ResolveD(this,HISlider,HIObject,HandleMouseUpInContent)
  9155.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  9156. }
  9157.  
  9158. /* method: TakeUserInputFocus */
  9159. void   TakeUserInputFocus(Environment *ev)
  9160. {
  9161.    SOM_ResolveD(this,HISlider,HIObject,TakeUserInputFocus)
  9162.     (this,ev);
  9163. }
  9164.  
  9165. /* method: ReleaseUserInputFocus */
  9166. void   ReleaseUserInputFocus(Environment *ev)
  9167. {
  9168.    SOM_ResolveD(this,HISlider,HIObject,ReleaseUserInputFocus)
  9169.     (this,ev);
  9170. }
  9171.  
  9172. /* method: HasUserInputFocus */
  9173. boolean   HasUserInputFocus(Environment *ev)
  9174. {
  9175.    return SOM_ResolveD(this,HISlider,HIObject,HasUserInputFocus)
  9176.     (this,ev);
  9177. }
  9178.  
  9179. /* method: CanReleaseUserInputFocus */
  9180. boolean   CanReleaseUserInputFocus(Environment *ev)
  9181. {
  9182.    return SOM_ResolveD(this,HISlider,HIObject,CanReleaseUserInputFocus)
  9183.     (this,ev);
  9184. }
  9185.  
  9186. /* method: SetUserInputFocusFlags */
  9187. void   SetUserInputFocusFlags(Environment *ev,
  9188.         HIUserInputFocusFlags flags)
  9189. {
  9190.    SOM_ResolveD(this,HISlider,HIObject,SetUserInputFocusFlags)
  9191.     (this,ev,flags);
  9192. }
  9193.  
  9194. /* method: GetUserInputFocusFlags */
  9195. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  9196. {
  9197.    return SOM_ResolveD(this,HISlider,HIObject,GetUserInputFocusFlags)
  9198.     (this,ev);
  9199. }
  9200.  
  9201. /* method: SetTitle */
  9202. OSStatus   SetTitle(Environment *ev,
  9203.         ConstHIImageRef title,
  9204.         HIAdoptionFlags disposalAdoptionFlags)
  9205. {
  9206.    return SOM_ResolveD(this,HISlider,HIObject,SetTitle)
  9207.     (this,ev,title,disposalAdoptionFlags);
  9208. }
  9209.  
  9210. /* method: GetTitle */
  9211. OSStatus   GetTitle(Environment *ev,
  9212.         HIImageRef* title)
  9213. {
  9214.    return SOM_ResolveD(this,HISlider,HIObject,GetTitle)
  9215.     (this,ev,title);
  9216. }
  9217.  
  9218. /* method: Draw */
  9219. void   Draw(Environment *ev,
  9220.         CGrafPtr whichPort,
  9221.         RgnHandle drawRgn)
  9222. {
  9223.    SOM_ResolveD(this,HISlider,HIObject,Draw)
  9224.     (this,ev,whichPort,drawRgn);
  9225. }
  9226.  
  9227. /* method: Erase */
  9228. void   Erase(Environment *ev,
  9229.         CGrafPtr whichPort,
  9230.         RgnHandle eraseRgn)
  9231. {
  9232.    SOM_ResolveD(this,HISlider,HIObject,Erase)
  9233.     (this,ev,whichPort,eraseRgn);
  9234. }
  9235.  
  9236. /* method: Invalidate */
  9237. void   Invalidate(Environment *ev)
  9238. {
  9239.    SOM_ResolveD(this,HISlider,HIObject,Invalidate)
  9240.     (this,ev);
  9241. }
  9242.  
  9243. /* method: GetDrawingMode */
  9244. HIDrawingMode   GetDrawingMode(Environment *ev)
  9245. {
  9246.    return SOM_ResolveD(this,HISlider,HIObject,GetDrawingMode)
  9247.     (this,ev);
  9248. }
  9249.  
  9250. /* method: SetDrawingMode */
  9251. void   SetDrawingMode(Environment *ev,
  9252.         HIDrawingMode drawingMode)
  9253. {
  9254.    SOM_ResolveD(this,HISlider,HIObject,SetDrawingMode)
  9255.     (this,ev,drawingMode);
  9256. }
  9257.  
  9258. /* method: SetBackgroundPattern */
  9259. void   SetBackgroundPattern(Environment *ev,
  9260.         PixPatHandle backgroundPattern)
  9261. {
  9262.    SOM_ResolveD(this,HISlider,HIObject,SetBackgroundPattern)
  9263.     (this,ev,backgroundPattern);
  9264. }
  9265.  
  9266. /* method: GetBackgroundPattern */
  9267. PixPatHandle   GetBackgroundPattern(Environment *ev)
  9268. {
  9269.    return SOM_ResolveD(this,HISlider,HIObject,GetBackgroundPattern)
  9270.     (this,ev);
  9271. }
  9272.  
  9273. /* method: Cut */
  9274. void   Cut(Environment *ev)
  9275. {
  9276.    SOM_ResolveD(this,HISlider,HIObject,Cut)
  9277.     (this,ev);
  9278. }
  9279.  
  9280. /* method: Copy */
  9281. void   Copy(Environment *ev)
  9282. {
  9283.    SOM_ResolveD(this,HISlider,HIObject,Copy)
  9284.     (this,ev);
  9285. }
  9286.  
  9287. /* method: Paste */
  9288. void   Paste(Environment *ev)
  9289. {
  9290.    SOM_ResolveD(this,HISlider,HIObject,Paste)
  9291.     (this,ev);
  9292. }
  9293.  
  9294. /* method: Clear */
  9295. void   Clear(Environment *ev)
  9296. {
  9297.    SOM_ResolveD(this,HISlider,HIObject,Clear)
  9298.     (this,ev);
  9299. }
  9300.  
  9301. /* method: GetClipboardSupportFlags */
  9302. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  9303. {
  9304.    return SOM_ResolveD(this,HISlider,HIObject,GetClipboardSupportFlags)
  9305.     (this,ev);
  9306. }
  9307.  
  9308. /* method: AddStateChangeCallback */
  9309. OSStatus   AddStateChangeCallback(Environment *ev,
  9310.         HIStateChangeCallbackProcPtr changedStateCallback,
  9311.         HIStateChangeCallbackRef* newCallbackRef)
  9312. {
  9313.    return SOM_ResolveD(this,HISlider,HIObject,AddStateChangeCallback)
  9314.     (this,ev,changedStateCallback,newCallbackRef);
  9315. }
  9316.  
  9317. /* method: RemoveStateChangeCallback */
  9318. OSStatus   RemoveStateChangeCallback(Environment *ev,
  9319.         HIStateChangeCallbackRef callbackRefToRemove)
  9320. {
  9321.    return SOM_ResolveD(this,HISlider,HIObject,RemoveStateChangeCallback)
  9322.     (this,ev,callbackRefToRemove);
  9323. }
  9324.  
  9325. /* noself procedure: GetHIObjectFromRefLabel */
  9326. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  9327.         RefLabel* identifier,
  9328.         ItemCount requestedObjects,
  9329.         ItemCount* totalObjects,
  9330.         HIObject** theObjects)
  9331. {
  9332. return ((somTD_HISlider_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  9333.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  9334. }
  9335.  
  9336. /* noself procedure: GetNewHIObject */
  9337. static OSStatus   GetNewHIObject(Environment *ev,
  9338.         AESubDesc* objectInitializer,
  9339.         HIObject** newObject)
  9340. {
  9341. return ((somTD_HISlider_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  9342.     (ev,objectInitializer,newObject);
  9343. }
  9344.  
  9345. /* noself procedure: GetNewHIObjectFromResource */
  9346. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  9347.         ResID objectInitializerResourceID,
  9348.         HIObject** newObject)
  9349. {
  9350. return ((somTD_HISlider_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  9351.     (ev,objectInitializerResourceID,newObject);
  9352. }
  9353.  
  9354. /* method: DrawContent */
  9355. void   DrawContent(Environment *ev,
  9356.         CGrafPtr whichPort,
  9357.         RgnHandle drawRgn)
  9358. {
  9359.    SOM_ResolveD(this,HISlider,HIObject,DrawContent)
  9360.     (this,ev,whichPort,drawRgn);
  9361. }
  9362.  
  9363. /* method: EraseContent */
  9364. void   EraseContent(Environment *ev,
  9365.         CGrafPtr whichPort,
  9366.         RgnHandle regionToErase)
  9367. {
  9368.    SOM_ResolveD(this,HISlider,HIObject,EraseContent)
  9369.     (this,ev,whichPort,regionToErase);
  9370. }
  9371.  
  9372. /* method: TranslatePoint */
  9373. void   TranslatePoint(Environment *ev,
  9374.         HICoordinateSystem translateFrom,
  9375.         HICoordinateSystem translateTo,
  9376.         Point* sourcePoint,
  9377.         Point* translatedPoint)
  9378. {
  9379.    SOM_ResolveD(this,HISlider,HIObject,TranslatePoint)
  9380.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  9381. }
  9382.  
  9383. /* method: TranslateRect */
  9384. void   TranslateRect(Environment *ev,
  9385.         HICoordinateSystem translateFrom,
  9386.         HICoordinateSystem translateTo,
  9387.         Rect* sourceRect,
  9388.         Rect* translatedRect)
  9389. {
  9390.    SOM_ResolveD(this,HISlider,HIObject,TranslateRect)
  9391.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  9392. }
  9393.  
  9394. /* method: StateChanged */
  9395. void   StateChanged(Environment *ev,
  9396.         HIStateChangeCodeCreator selectorCreator,
  9397.         HIStateChangeCode changedCode)
  9398. {
  9399.    SOM_ResolveD(this,HISlider,HIObject,StateChanged)
  9400.     (this,ev,selectorCreator,changedCode);
  9401. }
  9402.  
  9403. /* method: SetClipboardSupportFlags */
  9404. void   SetClipboardSupportFlags(Environment *ev,
  9405.         HIClipboardSupportFlags flags)
  9406. {
  9407.    SOM_ResolveD(this,HISlider,HIObject,SetClipboardSupportFlags)
  9408.     (this,ev,flags);
  9409. }
  9410.  
  9411. /* method: Verify */
  9412. OSStatus   Verify(Environment *ev)
  9413. {
  9414.    return SOM_ResolveD(this,HISlider,HIObject,Verify)
  9415.     (this,ev);
  9416. }
  9417.  
  9418. /* method: somInit */
  9419. void   somInit()
  9420. {
  9421.    SOM_ResolveD(this,HISlider,SOMObject,somInit)
  9422.     (this);
  9423. }
  9424.  
  9425. /* method: somUninit */
  9426. void   somUninit()
  9427. {
  9428.    SOM_ResolveD(this,HISlider,SOMObject,somUninit)
  9429.     (this);
  9430. }
  9431.  
  9432. /* method: somDuplicateReference */
  9433. SOMObject*   somDuplicateReference()
  9434. {
  9435.    return SOM_ResolveD(this,HISlider,SOMObject,somDuplicateReference)
  9436.     (this);
  9437. }
  9438.  
  9439. /* method: somCompareReference */
  9440. boolean   somCompareReference(SOMObject* anObject)
  9441. {
  9442.    return SOM_ResolveD(this,HISlider,SOMObject,somCompareReference)
  9443.     (this,anObject);
  9444. }
  9445.  
  9446. /* method: somRelease */
  9447. SOMObject*   somRelease()
  9448. {
  9449.    return SOM_ResolveD(this,HISlider,SOMObject,somRelease)
  9450.     (this);
  9451. }
  9452.  
  9453. /* method: somFree */
  9454. void   somFree()
  9455. {
  9456.    SOM_ResolveD(this,HISlider,SOMObject,somFree)
  9457.     (this);
  9458. }
  9459.  
  9460. /* method: somCanDelete */
  9461. boolean   somCanDelete()
  9462. {
  9463.    return SOM_ResolveD(this,HISlider,SOMObject,somCanDelete)
  9464.     (this);
  9465. }
  9466.  
  9467. /* method: somGetClass */
  9468. SOMClass*   somGetClass()
  9469. {
  9470.    return SOM_ResolveD(this,HISlider,SOMObject,somGetClass)
  9471.     (this);
  9472. }
  9473.  
  9474. /* method: somGetClassName */
  9475. corbastring   somGetClassName()
  9476. {
  9477.    return SOM_ResolveD(this,HISlider,SOMObject,somGetClassName)
  9478.     (this);
  9479. }
  9480.  
  9481. /* method: somGetSize */
  9482. long   somGetSize()
  9483. {
  9484.    return SOM_ResolveD(this,HISlider,SOMObject,somGetSize)
  9485.     (this);
  9486. }
  9487.  
  9488. /* method: somIsA */
  9489. boolean   somIsA(SOMClass* aClassObj)
  9490. {
  9491.    return SOM_ResolveD(this,HISlider,SOMObject,somIsA)
  9492.     (this,aClassObj);
  9493. }
  9494.  
  9495. /* method: somRespondsTo */
  9496. boolean   somRespondsTo(somId mId)
  9497. {
  9498.    return SOM_ResolveD(this,HISlider,SOMObject,somRespondsTo)
  9499.     (this,mId);
  9500. }
  9501.  
  9502. /* method: somIsInstanceOf */
  9503. boolean   somIsInstanceOf(SOMClass* aClassObj)
  9504. {
  9505.    return SOM_ResolveD(this,HISlider,SOMObject,somIsInstanceOf)
  9506.     (this,aClassObj);
  9507. }
  9508.  
  9509. /* va_list method: somDispatch */
  9510. /* the va_list invocation form */
  9511. boolean   HISlider_somDispatch(somToken* retValue,
  9512.         somId methodId,
  9513.         va_list ap)
  9514. {
  9515.    return SOM_ResolveD(this,HISlider,SOMObject,somDispatch)
  9516.     (this,retValue,methodId,ap);
  9517. }
  9518.  
  9519. /* the varargs invocation form */
  9520. boolean   somDispatch(somToken* retValue,
  9521.         somId methodId,
  9522.         ...)
  9523. {
  9524.    va_list ap;
  9525.    va_start(ap, methodId);
  9526.       boolean __somResult = 
  9527.       (boolean) SOM_ResolveD(this,HISlider,SOMObject,somDispatch)
  9528.     (this,retValue,methodId,ap);
  9529.    va_end(ap);
  9530.    return __somResult;
  9531. }
  9532.  
  9533. /* va_list method: somClassDispatch */
  9534. /* the va_list invocation form */
  9535. boolean   HISlider_somClassDispatch(SOMClass* clsObj,
  9536.         somToken* retValue,
  9537.         somId methodId,
  9538.         va_list ap)
  9539. {
  9540.    return SOM_ResolveD(this,HISlider,SOMObject,somClassDispatch)
  9541.     (this,clsObj,retValue,methodId,ap);
  9542. }
  9543.  
  9544. /* the varargs invocation form */
  9545. boolean   somClassDispatch(SOMClass* clsObj,
  9546.         somToken* retValue,
  9547.         somId methodId,
  9548.         ...)
  9549. {
  9550.    va_list ap;
  9551.    va_start(ap, methodId);
  9552.       boolean __somResult = 
  9553.       (boolean) SOM_ResolveD(this,HISlider,SOMObject,somClassDispatch)
  9554.     (this,clsObj,retValue,methodId,ap);
  9555.    va_end(ap);
  9556.    return __somResult;
  9557. }
  9558.  
  9559. /* method: somCastObj */
  9560. boolean   somCastObj(SOMClass* cls)
  9561. {
  9562.    return SOM_ResolveD(this,HISlider,SOMObject,somCastObj)
  9563.     (this,cls);
  9564. }
  9565.  
  9566. /* method: somResetObj */
  9567. boolean   somResetObj()
  9568. {
  9569.    return SOM_ResolveD(this,HISlider,SOMObject,somResetObj)
  9570.     (this);
  9571. }
  9572.  
  9573. /* method: somPrintSelf */
  9574. SOMObject*   somPrintSelf()
  9575. {
  9576.    return SOM_ResolveD(this,HISlider,SOMObject,somPrintSelf)
  9577.     (this);
  9578. }
  9579.  
  9580. /* method: somDumpSelf */
  9581. void   somDumpSelf(long level)
  9582. {
  9583.    SOM_ResolveD(this,HISlider,SOMObject,somDumpSelf)
  9584.     (this,level);
  9585. }
  9586.  
  9587. /* method: somDumpSelfInt */
  9588. void   somDumpSelfInt(long level)
  9589. {
  9590.    SOM_ResolveD(this,HISlider,SOMObject,somDumpSelfInt)
  9591.     (this,level);
  9592. }
  9593.  
  9594. };   /* HISlider */
  9595.  
  9596.  
  9597.  
  9598. #endif       /* SOM_HISlider_xh */
  9599.  
  9600. #ifndef SOM_HILittleArrows_xh
  9601. #define SOM_HILittleArrows_xh
  9602.  
  9603. class HILittleArrows;
  9604.  
  9605. #define HILittleArrows_MajorVersion 0
  9606. #define HILittleArrows_MinorVersion 0
  9607.  
  9608. /* C++ SOM defs */
  9609. #include <somcls.xh>
  9610. #include <somcm.xh>
  9611.  
  9612. /* C++ parent defs */
  9613. #ifndef SOM_HIControl_xh
  9614. #include <HIControls.xh>
  9615. #endif
  9616.  
  9617. #ifndef HILittleArrows_API
  9618. #define HILittleArrows_API
  9619. /*
  9620.  * -- The Class API
  9621.  */
  9622.  
  9623. /*
  9624.  * Start of user-defined types:
  9625.  */
  9626.  
  9627. /*
  9628.  * End of user-defined types.
  9629.  */
  9630.  
  9631. #ifdef OLDIBMSOMAPISUPPORT
  9632. #define HILittleArrowsCClassData HILittleArrowsClassData
  9633. #define HILittleArrowsNewClass(major,minor) somNewVersionedClassReference(HILittleArrows,major,minor)
  9634. #endif
  9635.  
  9636. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  9637. #define HILittleArrowsMetaClass SOMClass
  9638.  
  9639. #if PRAGMA_ALIGN_SUPPORTED
  9640. #  pragma options align=power
  9641. #endif
  9642.  
  9643. /* The API to the HILittleArrows class object, and the methods it introduces. */
  9644. SOMEXTERN struct HILittleArrowsClassDataStructure {
  9645. #ifdef OLDIBMSOMAPISUPPORT
  9646.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  9647. #else
  9648.     long zero;
  9649. #endif
  9650.     somStaticClassInfo *sci;
  9651.     somDToken        instanceDataToken;
  9652.     long reserved [3];
  9653.     somMToken InitLittleArrows;
  9654.     somMToken SetArrowDelta;
  9655.     somMToken GetArrowDelta;
  9656. } SOMDLINK HILittleArrowsClassData;
  9657.  
  9658. #if PRAGMA_ALIGN_SUPPORTED
  9659. #  pragma options align=reset
  9660. #endif
  9661.  
  9662. #if !defined(HILittleArrows_Class_Source) && !defined(SOM_Module_hicontrols_Source)
  9663. #if PRAGMA_IMPORT_SUPPORTED
  9664. #pragma import list HILittleArrowsClassData
  9665. #endif
  9666. #endif
  9667.  
  9668.  
  9669. /*
  9670.  * -- Typedefs for HILittleArrows Method Procedures
  9671.  */
  9672. SOMEXTERN {
  9673. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_InitLittleArrows)(HILittleArrows *somSelf, Environment *ev,
  9674.         RefLabel* identifier,
  9675.         HIWindow* window,
  9676.         Point* anchor,
  9677.         SInt32 value,
  9678.         SInt32 minimumValue,
  9679.         SInt32 maximumValue);
  9680. typedef void   (* SOMLINK somTD_HILittleArrows_SetArrowDelta)(HILittleArrows *somSelf, Environment *ev,
  9681.         UInt32 delta);
  9682. typedef UInt32   (* SOMLINK somTD_HILittleArrows_GetArrowDelta)(HILittleArrows *somSelf, Environment *ev);
  9683.  
  9684. /*
  9685.  * -- Typedefs for Inherited Methods
  9686.  */
  9687. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_InitControl)(HILittleArrows *somSelf, Environment *ev,
  9688.         RefLabel* identifier,
  9689.         HIWindow* window,
  9690.         Rect* bounds,
  9691.         SInt32 value,
  9692.         SInt32 minimumValue,
  9693.         SInt32 maximumValue);
  9694. typedef void   (* SOMLINK somTD_HILittleArrows_SetValue)(HILittleArrows *somSelf, Environment *ev,
  9695.         SInt32 newValue);
  9696. typedef SInt32   (* SOMLINK somTD_HILittleArrows_GetValue)(HILittleArrows *somSelf, Environment *ev);
  9697. typedef void   (* SOMLINK somTD_HILittleArrows_SetMinimum)(HILittleArrows *somSelf, Environment *ev,
  9698.         SInt32 newMinimum);
  9699. typedef SInt32   (* SOMLINK somTD_HILittleArrows_GetMinimum)(HILittleArrows *somSelf, Environment *ev);
  9700. typedef void   (* SOMLINK somTD_HILittleArrows_SetMaximum)(HILittleArrows *somSelf, Environment *ev,
  9701.         SInt32 newMaximum);
  9702. typedef SInt32   (* SOMLINK somTD_HILittleArrows_GetMaximum)(HILittleArrows *somSelf, Environment *ev);
  9703. typedef void   (* SOMLINK somTD_HILittleArrows_SimulateSelection)(HILittleArrows *somSelf, Environment *ev);
  9704. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HILittleArrows_GetEmbeddingParent)(HILittleArrows *somSelf, Environment *ev);
  9705. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_InitPanel)(HILittleArrows *somSelf, Environment *ev,
  9706.         RefLabel* identifier,
  9707.         HIWindow* window,
  9708.         Rect* bounds);
  9709. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_RegisterInterestInAppleEvent)(HILittleArrows *somSelf, Environment *ev,
  9710.         AEHandlerTableRef table,
  9711.         AEEventClass eventClass,
  9712.         AEEventID eventID,
  9713.         HIEventRoutingType eventRouting);
  9714. typedef boolean   (* SOMLINK somTD_HILittleArrows_HasValidContent)(HILittleArrows *somSelf, Environment *ev);
  9715. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_GetDeepCollectionItemData)(HILittleArrows *somSelf, Environment *ev,
  9716.         CollectionTag tag,
  9717.         SInt32 id,
  9718.         ByteCount sizeAllowed,
  9719.         ByteCount* sizeReturned,
  9720.         void* itemData);
  9721. typedef HIWindow*   (* SOMLINK somTD_HILittleArrows_GetWindow)(HILittleArrows *somSelf, Environment *ev);
  9722. typedef CGrafPtr   (* SOMLINK somTD_HILittleArrows_GetPort)(HILittleArrows *somSelf, Environment *ev);
  9723. typedef void   (* SOMLINK somTD_HILittleArrows_GetRefLabel)(HILittleArrows *somSelf, Environment *ev,
  9724.         RefLabel* identifier);
  9725. typedef Collection   (* SOMLINK somTD_HILittleArrows_GetCollection)(HILittleArrows *somSelf, Environment *ev);
  9726. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_Init)(HILittleArrows *somSelf, Environment *ev,
  9727.         RefLabel* identifier,
  9728.         Rect* boundingRect);
  9729. typedef void   (* SOMLINK somTD_HILittleArrows_Terminate)(HILittleArrows *somSelf, Environment *ev);
  9730. typedef HIObject*   (* SOMLINK somTD_HILittleArrows_Clone)(HILittleArrows *somSelf, Environment *ev);
  9731. typedef void   (* SOMLINK somTD_HILittleArrows_Release)(HILittleArrows *somSelf, Environment *ev);
  9732. typedef ItemCount   (* SOMLINK somTD_HILittleArrows_GetOwnerCount)(HILittleArrows *somSelf, Environment *ev);
  9733. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_InitFromAERecord)(HILittleArrows *somSelf, Environment *ev,
  9734.         AESubDesc* baseInitializerData,
  9735.         AESubDesc* initializerDataForClass,
  9736.         HIAERecordDataFormat dataFormat);
  9737. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_WriteToAERecord)(HILittleArrows *somSelf, Environment *ev,
  9738.         AERecord* dataForSubclass,
  9739.         AERecord* objectData,
  9740.         HIAERecordDataFormat dataFormat);
  9741. typedef void   (* SOMLINK somTD_HILittleArrows_CalculateOptimalSize)(HILittleArrows *somSelf, Environment *ev,
  9742.         SInt16* optimalWidth,
  9743.         SInt16* optimalHeight);
  9744. typedef void   (* SOMLINK somTD_HILittleArrows_GetBoundingRect)(HILittleArrows *somSelf, Environment *ev,
  9745.         HICoordinateSystem coordinate,
  9746.         Rect* boundingRect);
  9747. typedef void   (* SOMLINK somTD_HILittleArrows_SetBoundingRect)(HILittleArrows *somSelf, Environment *ev,
  9748.         HICoordinateSystem coordinate,
  9749.         Rect* newBoundingRect);
  9750. typedef void   (* SOMLINK somTD_HILittleArrows_SetPosition)(HILittleArrows *somSelf, Environment *ev,
  9751.         HICoordinateSystem coordinate,
  9752.         Point* newPosition);
  9753. typedef void   (* SOMLINK somTD_HILittleArrows_SetSize)(HILittleArrows *somSelf, Environment *ev,
  9754.         SInt16 width,
  9755.         SInt16 height);
  9756. typedef void   (* SOMLINK somTD_HILittleArrows_GetUpdateRect)(HILittleArrows *somSelf, Environment *ev,
  9757.         HICoordinateSystem coordinate,
  9758.         Rect* updateRect);
  9759. typedef void   (* SOMLINK somTD_HILittleArrows_Enable)(HILittleArrows *somSelf, Environment *ev);
  9760. typedef void   (* SOMLINK somTD_HILittleArrows_Disable)(HILittleArrows *somSelf, Environment *ev);
  9761. typedef boolean   (* SOMLINK somTD_HILittleArrows_IsEnabled)(HILittleArrows *somSelf, Environment *ev);
  9762. typedef void   (* SOMLINK somTD_HILittleArrows_Show)(HILittleArrows *somSelf, Environment *ev);
  9763. typedef void   (* SOMLINK somTD_HILittleArrows_Hide)(HILittleArrows *somSelf, Environment *ev);
  9764. typedef boolean   (* SOMLINK somTD_HILittleArrows_IsVisible)(HILittleArrows *somSelf, Environment *ev);
  9765. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_HandleAppleEvent)(HILittleArrows *somSelf, Environment *ev,
  9766.         AEEventClass eventClass,
  9767.         AEEventID eventID,
  9768.         AppleEvent* theEvent,
  9769.         AppleEvent* reply,
  9770.         AEHandlerTableRef handlerTableRef);
  9771. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_HandleActivate)(HILittleArrows *somSelf, Environment *ev,
  9772.         AppleEvent* theEvent,
  9773.         AppleEvent* reply,
  9774.         AEHandlerTableRef handlerTableRef);
  9775. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_HandleDeactivate)(HILittleArrows *somSelf, Environment *ev,
  9776.         AppleEvent* theEvent,
  9777.         AppleEvent* reply,
  9778.         AEHandlerTableRef handlerTableRef);
  9779. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_HandleNavigation)(HILittleArrows *somSelf, Environment *ev,
  9780.         SInt8 key,
  9781.         SInt8 keyCode,
  9782.         EventModifiers modifiers,
  9783.         AppleEvent* theEvent,
  9784.         AppleEvent* reply,
  9785.         AEHandlerTableRef handlerTableRef);
  9786. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_HandleMouseDownInContent)(HILittleArrows *somSelf, Environment *ev,
  9787.         Point* portLocalWhere,
  9788.         EventModifiers modifiers,
  9789.         AppleEvent* theEvent,
  9790.         AppleEvent* reply,
  9791.         AEHandlerTableRef handlerTableRef);
  9792. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_HandleMouseMovedInContent)(HILittleArrows *somSelf, Environment *ev,
  9793.         Point* portLocalWhere,
  9794.         EventModifiers modifiers,
  9795.         AppleEvent* theEvent,
  9796.         AppleEvent* reply,
  9797.         AEHandlerTableRef handlerTableRef);
  9798. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_HandleMouseStoppedMovingInContent)(HILittleArrows *somSelf, Environment *ev,
  9799.         Point* portLocalWhere,
  9800.         EventModifiers modifiers,
  9801.         AppleEvent* theEvent,
  9802.         AppleEvent* reply,
  9803.         AEHandlerTableRef handlerTableRef);
  9804. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_HandleMouseUpInContent)(HILittleArrows *somSelf, Environment *ev,
  9805.         Point* portLocalWhere,
  9806.         EventModifiers modifiers,
  9807.         AppleEvent* theEvent,
  9808.         AppleEvent* reply,
  9809.         AEHandlerTableRef handlerTableRef);
  9810. typedef void   (* SOMLINK somTD_HILittleArrows_TakeUserInputFocus)(HILittleArrows *somSelf, Environment *ev);
  9811. typedef void   (* SOMLINK somTD_HILittleArrows_ReleaseUserInputFocus)(HILittleArrows *somSelf, Environment *ev);
  9812. typedef boolean   (* SOMLINK somTD_HILittleArrows_HasUserInputFocus)(HILittleArrows *somSelf, Environment *ev);
  9813. typedef boolean   (* SOMLINK somTD_HILittleArrows_CanReleaseUserInputFocus)(HILittleArrows *somSelf, Environment *ev);
  9814. typedef void   (* SOMLINK somTD_HILittleArrows_SetUserInputFocusFlags)(HILittleArrows *somSelf, Environment *ev,
  9815.         HIUserInputFocusFlags flags);
  9816. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HILittleArrows_GetUserInputFocusFlags)(HILittleArrows *somSelf, Environment *ev);
  9817. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_SetTitle)(HILittleArrows *somSelf, Environment *ev,
  9818.         ConstHIImageRef title,
  9819.         HIAdoptionFlags disposalAdoptionFlags);
  9820. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_GetTitle)(HILittleArrows *somSelf, Environment *ev,
  9821.         HIImageRef* title);
  9822. typedef void   (* SOMLINK somTD_HILittleArrows_Draw)(HILittleArrows *somSelf, Environment *ev,
  9823.         CGrafPtr whichPort,
  9824.         RgnHandle drawRgn);
  9825. typedef void   (* SOMLINK somTD_HILittleArrows_Erase)(HILittleArrows *somSelf, Environment *ev,
  9826.         CGrafPtr whichPort,
  9827.         RgnHandle eraseRgn);
  9828. typedef void   (* SOMLINK somTD_HILittleArrows_Invalidate)(HILittleArrows *somSelf, Environment *ev);
  9829. typedef HIDrawingMode   (* SOMLINK somTD_HILittleArrows_GetDrawingMode)(HILittleArrows *somSelf, Environment *ev);
  9830. typedef void   (* SOMLINK somTD_HILittleArrows_SetDrawingMode)(HILittleArrows *somSelf, Environment *ev,
  9831.         HIDrawingMode drawingMode);
  9832. typedef void   (* SOMLINK somTD_HILittleArrows_SetBackgroundPattern)(HILittleArrows *somSelf, Environment *ev,
  9833.         PixPatHandle backgroundPattern);
  9834. typedef PixPatHandle   (* SOMLINK somTD_HILittleArrows_GetBackgroundPattern)(HILittleArrows *somSelf, Environment *ev);
  9835. typedef void   (* SOMLINK somTD_HILittleArrows_Cut)(HILittleArrows *somSelf, Environment *ev);
  9836. typedef void   (* SOMLINK somTD_HILittleArrows_Copy)(HILittleArrows *somSelf, Environment *ev);
  9837. typedef void   (* SOMLINK somTD_HILittleArrows_Paste)(HILittleArrows *somSelf, Environment *ev);
  9838. typedef void   (* SOMLINK somTD_HILittleArrows_Clear)(HILittleArrows *somSelf, Environment *ev);
  9839. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HILittleArrows_GetClipboardSupportFlags)(HILittleArrows *somSelf, Environment *ev);
  9840. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_AddStateChangeCallback)(HILittleArrows *somSelf, Environment *ev,
  9841.         HIStateChangeCallbackProcPtr changedStateCallback,
  9842.         HIStateChangeCallbackRef* newCallbackRef);
  9843. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_RemoveStateChangeCallback)(HILittleArrows *somSelf, Environment *ev,
  9844.         HIStateChangeCallbackRef callbackRefToRemove);
  9845. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_GetHIObjectFromRefLabel)(Environment *ev,
  9846.         RefLabel* identifier,
  9847.         ItemCount requestedObjects,
  9848.         ItemCount* totalObjects,
  9849.         HIObject** theObjects);
  9850. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_GetNewHIObject)(Environment *ev,
  9851.         AESubDesc* objectInitializer,
  9852.         HIObject** newObject);
  9853. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_GetNewHIObjectFromResource)(Environment *ev,
  9854.         ResID objectInitializerResourceID,
  9855.         HIObject** newObject);
  9856. typedef void   (* SOMLINK somTD_HILittleArrows_DrawContent)(HILittleArrows *somSelf, Environment *ev,
  9857.         CGrafPtr whichPort,
  9858.         RgnHandle drawRgn);
  9859. typedef void   (* SOMLINK somTD_HILittleArrows_EraseContent)(HILittleArrows *somSelf, Environment *ev,
  9860.         CGrafPtr whichPort,
  9861.         RgnHandle regionToErase);
  9862. typedef void   (* SOMLINK somTD_HILittleArrows_TranslatePoint)(HILittleArrows *somSelf, Environment *ev,
  9863.         HICoordinateSystem translateFrom,
  9864.         HICoordinateSystem translateTo,
  9865.         Point* sourcePoint,
  9866.         Point* translatedPoint);
  9867. typedef void   (* SOMLINK somTD_HILittleArrows_TranslateRect)(HILittleArrows *somSelf, Environment *ev,
  9868.         HICoordinateSystem translateFrom,
  9869.         HICoordinateSystem translateTo,
  9870.         Rect* sourceRect,
  9871.         Rect* translatedRect);
  9872. typedef void   (* SOMLINK somTD_HILittleArrows_StateChanged)(HILittleArrows *somSelf, Environment *ev,
  9873.         HIStateChangeCodeCreator selectorCreator,
  9874.         HIStateChangeCode changedCode);
  9875. typedef void   (* SOMLINK somTD_HILittleArrows_SetClipboardSupportFlags)(HILittleArrows *somSelf, Environment *ev,
  9876.         HIClipboardSupportFlags flags);
  9877. typedef OSStatus   (* SOMLINK somTD_HILittleArrows_Verify)(HILittleArrows *somSelf, Environment *ev);
  9878. typedef void   (* SOMLINK somTD_HILittleArrows_somInit)(HILittleArrows *somSelf);
  9879. typedef void   (* SOMLINK somTD_HILittleArrows_somUninit)(HILittleArrows *somSelf);
  9880. typedef SOMObject*   (* SOMLINK somTD_HILittleArrows_somDuplicateReference)(HILittleArrows *somSelf);
  9881. typedef boolean   (* SOMLINK somTD_HILittleArrows_somCompareReference)(HILittleArrows *somSelf,
  9882.         SOMObject* anObject);
  9883. typedef SOMObject*   (* SOMLINK somTD_HILittleArrows_somRelease)(HILittleArrows *somSelf);
  9884. typedef void   (* SOMLINK somTD_HILittleArrows_somFree)(HILittleArrows *somSelf);
  9885. typedef boolean   (* SOMLINK somTD_HILittleArrows_somCanDelete)(HILittleArrows *somSelf);
  9886. typedef SOMClass*   (* SOMLINK somTD_HILittleArrows_somGetClass)(HILittleArrows *somSelf);
  9887. typedef corbastring   (* SOMLINK somTD_HILittleArrows_somGetClassName)(HILittleArrows *somSelf);
  9888. typedef long   (* SOMLINK somTD_HILittleArrows_somGetSize)(HILittleArrows *somSelf);
  9889. typedef boolean   (* SOMLINK somTD_HILittleArrows_somIsA)(HILittleArrows *somSelf,
  9890.         SOMClass* aClassObj);
  9891. typedef boolean   (* SOMLINK somTD_HILittleArrows_somRespondsTo)(HILittleArrows *somSelf,
  9892.         somId mId);
  9893. typedef boolean   (* SOMLINK somTD_HILittleArrows_somIsInstanceOf)(HILittleArrows *somSelf,
  9894.         SOMClass* aClassObj);
  9895. typedef boolean   (* SOMLINK somTD_HILittleArrows_somDispatch)(HILittleArrows *somSelf,
  9896.         somToken* retValue,
  9897.         somId methodId,
  9898.         va_list ap);
  9899. typedef boolean   (* SOMLINK somTD_HILittleArrows_somClassDispatch)(HILittleArrows *somSelf,
  9900.         SOMClass* clsObj,
  9901.         somToken* retValue,
  9902.         somId methodId,
  9903.         va_list ap);
  9904. typedef boolean   (* SOMLINK somTD_HILittleArrows_somCastObj)(HILittleArrows *somSelf,
  9905.         SOMClass* cls);
  9906. typedef boolean   (* SOMLINK somTD_HILittleArrows_somResetObj)(HILittleArrows *somSelf);
  9907. typedef SOMObject*   (* SOMLINK somTD_HILittleArrows_somPrintSelf)(HILittleArrows *somSelf);
  9908. typedef void   (* SOMLINK somTD_HILittleArrows_somDumpSelf)(HILittleArrows *somSelf,
  9909.         long level);
  9910. typedef void   (* SOMLINK somTD_HILittleArrows_somDumpSelfInt)(HILittleArrows *somSelf,
  9911.         long level);
  9912. }
  9913.  
  9914. #endif /* HILittleArrows_API */
  9915.  
  9916.  
  9917. /*
  9918.  * -- This emitter treats Method Tokens as Thunks by default.
  9919.  * -- Use the sc modifier "nothunks" to change this default
  9920.  */
  9921. #undef somresolve_
  9922. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  9923.  
  9924. /*
  9925.  * -- The C++ Wrapper Class for HILittleArrows
  9926.  */
  9927. class HILittleArrows : public HIControl
  9928. {
  9929. public:
  9930.  
  9931. // HILittleArrows::new registers use of the class object, and then uses somNew
  9932. // to allocate memory and load the object method table pointer. 
  9933. void *operator new(size_t size)
  9934. {
  9935.     SOM_IgnoreWarning(size);
  9936.     // Allocate memory using the default allocator for HILittleArrows, and
  9937.     // clear mem & set method table pointer, call basic initialization
  9938.     return (void*) somNewObject(HILittleArrows);
  9939. }
  9940.  
  9941. // HILittleArrows::delete uses the default deallocator for the object's class.
  9942. void operator delete(void * obj)
  9943. {
  9944.     if (obj) {
  9945.         SOM_Resolve(obj,SOMObject,somFree)
  9946.            ( (SOMObject*) obj );
  9947.     }
  9948. }
  9949.  
  9950. /* method: InitLittleArrows */
  9951. OSStatus   InitLittleArrows(Environment *ev,
  9952.         RefLabel* identifier,
  9953.         HIWindow* window,
  9954.         Point* anchor,
  9955.         SInt32 value,
  9956.         SInt32 minimumValue,
  9957.         SInt32 maximumValue)
  9958. {
  9959.    return SOM_ResolveD(this,HILittleArrows,HILittleArrows,InitLittleArrows)
  9960.     (this,ev,identifier,window,anchor,value,minimumValue,maximumValue);
  9961. }
  9962.  
  9963. /* method: SetArrowDelta */
  9964. void   SetArrowDelta(Environment *ev,
  9965.         UInt32 delta)
  9966. {
  9967.    SOM_ResolveD(this,HILittleArrows,HILittleArrows,SetArrowDelta)
  9968.     (this,ev,delta);
  9969. }
  9970.  
  9971. /* method: GetArrowDelta */
  9972. UInt32   GetArrowDelta(Environment *ev)
  9973. {
  9974.    return SOM_ResolveD(this,HILittleArrows,HILittleArrows,GetArrowDelta)
  9975.     (this,ev);
  9976. }
  9977.  
  9978.  
  9979. /*
  9980.  * -- Inherited methods
  9981.  */
  9982. /* method: InitControl */
  9983. OSStatus   InitControl(Environment *ev,
  9984.         RefLabel* identifier,
  9985.         HIWindow* window,
  9986.         Rect* bounds,
  9987.         SInt32 value,
  9988.         SInt32 minimumValue,
  9989.         SInt32 maximumValue)
  9990. {
  9991.    return SOM_ResolveD(this,HILittleArrows,HIControl,InitControl)
  9992.     (this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
  9993. }
  9994.  
  9995. /* method: SetValue */
  9996. void   SetValue(Environment *ev,
  9997.         SInt32 newValue)
  9998. {
  9999.    SOM_ResolveD(this,HILittleArrows,HIControl,SetValue)
  10000.     (this,ev,newValue);
  10001. }
  10002.  
  10003. /* method: GetValue */
  10004. SInt32   GetValue(Environment *ev)
  10005. {
  10006.    return SOM_ResolveD(this,HILittleArrows,HIControl,GetValue)
  10007.     (this,ev);
  10008. }
  10009.  
  10010. /* method: SetMinimum */
  10011. void   SetMinimum(Environment *ev,
  10012.         SInt32 newMinimum)
  10013. {
  10014.    SOM_ResolveD(this,HILittleArrows,HIControl,SetMinimum)
  10015.     (this,ev,newMinimum);
  10016. }
  10017.  
  10018. /* method: GetMinimum */
  10019. SInt32   GetMinimum(Environment *ev)
  10020. {
  10021.    return SOM_ResolveD(this,HILittleArrows,HIControl,GetMinimum)
  10022.     (this,ev);
  10023. }
  10024.  
  10025. /* method: SetMaximum */
  10026. void   SetMaximum(Environment *ev,
  10027.         SInt32 newMaximum)
  10028. {
  10029.    SOM_ResolveD(this,HILittleArrows,HIControl,SetMaximum)
  10030.     (this,ev,newMaximum);
  10031. }
  10032.  
  10033. /* method: GetMaximum */
  10034. SInt32   GetMaximum(Environment *ev)
  10035. {
  10036.    return SOM_ResolveD(this,HILittleArrows,HIControl,GetMaximum)
  10037.     (this,ev);
  10038. }
  10039.  
  10040. /* method: SimulateSelection */
  10041. void   SimulateSelection(Environment *ev)
  10042. {
  10043.    SOM_ResolveD(this,HILittleArrows,HIControl,SimulateSelection)
  10044.     (this,ev);
  10045. }
  10046.  
  10047. /* method: GetEmbeddingParent */
  10048. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  10049. {
  10050.    return SOM_ResolveD(this,HILittleArrows,HIPanel,GetEmbeddingParent)
  10051.     (this,ev);
  10052. }
  10053.  
  10054. /* method: InitPanel */
  10055. OSStatus   InitPanel(Environment *ev,
  10056.         RefLabel* identifier,
  10057.         HIWindow* window,
  10058.         Rect* bounds)
  10059. {
  10060.    return SOM_ResolveD(this,HILittleArrows,HIPanel,InitPanel)
  10061.     (this,ev,identifier,window,bounds);
  10062. }
  10063.  
  10064. /* method: RegisterInterestInAppleEvent */
  10065. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  10066.         AEHandlerTableRef table,
  10067.         AEEventClass eventClass,
  10068.         AEEventID eventID,
  10069.         HIEventRoutingType eventRouting)
  10070. {
  10071.    return SOM_ResolveD(this,HILittleArrows,HIPanel,RegisterInterestInAppleEvent)
  10072.     (this,ev,table,eventClass,eventID,eventRouting);
  10073. }
  10074.  
  10075. /* method: HasValidContent */
  10076. boolean   HasValidContent(Environment *ev)
  10077. {
  10078.    return SOM_ResolveD(this,HILittleArrows,HIPanel,HasValidContent)
  10079.     (this,ev);
  10080. }
  10081.  
  10082. /* method: GetDeepCollectionItemData */
  10083. OSStatus   GetDeepCollectionItemData(Environment *ev,
  10084.         CollectionTag tag,
  10085.         SInt32 id,
  10086.         ByteCount sizeAllowed,
  10087.         ByteCount* sizeReturned,
  10088.         void* itemData)
  10089. {
  10090.    return SOM_ResolveD(this,HILittleArrows,HIPanel,GetDeepCollectionItemData)
  10091.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  10092. }
  10093.  
  10094. /* method: GetWindow */
  10095. HIWindow*   GetWindow(Environment *ev)
  10096. {
  10097.    return SOM_ResolveD(this,HILittleArrows,HIObject,GetWindow)
  10098.     (this,ev);
  10099. }
  10100.  
  10101. /* method: GetPort */
  10102. CGrafPtr   GetPort(Environment *ev)
  10103. {
  10104.    return SOM_ResolveD(this,HILittleArrows,HIObject,GetPort)
  10105.     (this,ev);
  10106. }
  10107.  
  10108. /* method: GetRefLabel */
  10109. void   GetRefLabel(Environment *ev,
  10110.         RefLabel* identifier)
  10111. {
  10112.    SOM_ResolveD(this,HILittleArrows,HIObject,GetRefLabel)
  10113.     (this,ev,identifier);
  10114. }
  10115.  
  10116. /* method: GetCollection */
  10117. Collection   GetCollection(Environment *ev)
  10118. {
  10119.    return SOM_ResolveD(this,HILittleArrows,HIObject,GetCollection)
  10120.     (this,ev);
  10121. }
  10122.  
  10123. /* method: Init */
  10124. OSStatus   Init(Environment *ev,
  10125.         RefLabel* identifier,
  10126.         Rect* boundingRect)
  10127. {
  10128.    return SOM_ResolveD(this,HILittleArrows,HIObject,Init)
  10129.     (this,ev,identifier,boundingRect);
  10130. }
  10131.  
  10132. /* method: Terminate */
  10133. void   Terminate(Environment *ev)
  10134. {
  10135.    SOM_ResolveD(this,HILittleArrows,HIObject,Terminate)
  10136.     (this,ev);
  10137. }
  10138.  
  10139. /* method: Clone */
  10140. HIObject*   Clone(Environment *ev)
  10141. {
  10142.    return SOM_ResolveD(this,HILittleArrows,HIObject,Clone)
  10143.     (this,ev);
  10144. }
  10145.  
  10146. /* method: Release */
  10147. void   Release(Environment *ev)
  10148. {
  10149.    SOM_ResolveD(this,HILittleArrows,HIObject,Release)
  10150.     (this,ev);
  10151. }
  10152.  
  10153. /* method: GetOwnerCount */
  10154. ItemCount   GetOwnerCount(Environment *ev)
  10155. {
  10156.    return SOM_ResolveD(this,HILittleArrows,HIObject,GetOwnerCount)
  10157.     (this,ev);
  10158. }
  10159.  
  10160. /* method: InitFromAERecord */
  10161. OSStatus   InitFromAERecord(Environment *ev,
  10162.         AESubDesc* baseInitializerData,
  10163.         AESubDesc* initializerDataForClass,
  10164.         HIAERecordDataFormat dataFormat)
  10165. {
  10166.    return SOM_ResolveD(this,HILittleArrows,HIObject,InitFromAERecord)
  10167.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  10168. }
  10169.  
  10170. /* method: WriteToAERecord */
  10171. OSStatus   WriteToAERecord(Environment *ev,
  10172.         AERecord* dataForSubclass,
  10173.         AERecord* objectData,
  10174.         HIAERecordDataFormat dataFormat)
  10175. {
  10176.    return SOM_ResolveD(this,HILittleArrows,HIObject,WriteToAERecord)
  10177.     (this,ev,dataForSubclass,objectData,dataFormat);
  10178. }
  10179.  
  10180. /* method: CalculateOptimalSize */
  10181. void   CalculateOptimalSize(Environment *ev,
  10182.         SInt16* optimalWidth,
  10183.         SInt16* optimalHeight)
  10184. {
  10185.    SOM_ResolveD(this,HILittleArrows,HIObject,CalculateOptimalSize)
  10186.     (this,ev,optimalWidth,optimalHeight);
  10187. }
  10188.  
  10189. /* method: GetBoundingRect */
  10190. void   GetBoundingRect(Environment *ev,
  10191.         HICoordinateSystem coordinate,
  10192.         Rect* boundingRect)
  10193. {
  10194.    SOM_ResolveD(this,HILittleArrows,HIObject,GetBoundingRect)
  10195.     (this,ev,coordinate,boundingRect);
  10196. }
  10197.  
  10198. /* method: SetBoundingRect */
  10199. void   SetBoundingRect(Environment *ev,
  10200.         HICoordinateSystem coordinate,
  10201.         Rect* newBoundingRect)
  10202. {
  10203.    SOM_ResolveD(this,HILittleArrows,HIObject,SetBoundingRect)
  10204.     (this,ev,coordinate,newBoundingRect);
  10205. }
  10206.  
  10207. /* method: SetPosition */
  10208. void   SetPosition(Environment *ev,
  10209.         HICoordinateSystem coordinate,
  10210.         Point* newPosition)
  10211. {
  10212.    SOM_ResolveD(this,HILittleArrows,HIObject,SetPosition)
  10213.     (this,ev,coordinate,newPosition);
  10214. }
  10215.  
  10216. /* method: SetSize */
  10217. void   SetSize(Environment *ev,
  10218.         SInt16 width,
  10219.         SInt16 height)
  10220. {
  10221.    SOM_ResolveD(this,HILittleArrows,HIObject,SetSize)
  10222.     (this,ev,width,height);
  10223. }
  10224.  
  10225. /* method: GetUpdateRect */
  10226. void   GetUpdateRect(Environment *ev,
  10227.         HICoordinateSystem coordinate,
  10228.         Rect* updateRect)
  10229. {
  10230.    SOM_ResolveD(this,HILittleArrows,HIObject,GetUpdateRect)
  10231.     (this,ev,coordinate,updateRect);
  10232. }
  10233.  
  10234. /* method: Enable */
  10235. void   Enable(Environment *ev)
  10236. {
  10237.    SOM_ResolveD(this,HILittleArrows,HIObject,Enable)
  10238.     (this,ev);
  10239. }
  10240.  
  10241. /* method: Disable */
  10242. void   Disable(Environment *ev)
  10243. {
  10244.    SOM_ResolveD(this,HILittleArrows,HIObject,Disable)
  10245.     (this,ev);
  10246. }
  10247.  
  10248. /* method: IsEnabled */
  10249. boolean   IsEnabled(Environment *ev)
  10250. {
  10251.    return SOM_ResolveD(this,HILittleArrows,HIObject,IsEnabled)
  10252.     (this,ev);
  10253. }
  10254.  
  10255. /* method: Show */
  10256. void   Show(Environment *ev)
  10257. {
  10258.    SOM_ResolveD(this,HILittleArrows,HIObject,Show)
  10259.     (this,ev);
  10260. }
  10261.  
  10262. /* method: Hide */
  10263. void   Hide(Environment *ev)
  10264. {
  10265.    SOM_ResolveD(this,HILittleArrows,HIObject,Hide)
  10266.     (this,ev);
  10267. }
  10268.  
  10269. /* method: IsVisible */
  10270. boolean   IsVisible(Environment *ev)
  10271. {
  10272.    return SOM_ResolveD(this,HILittleArrows,HIObject,IsVisible)
  10273.     (this,ev);
  10274. }
  10275.  
  10276. /* method: HandleAppleEvent */
  10277. OSStatus   HandleAppleEvent(Environment *ev,
  10278.         AEEventClass eventClass,
  10279.         AEEventID eventID,
  10280.         AppleEvent* theEvent,
  10281.         AppleEvent* reply,
  10282.         AEHandlerTableRef handlerTableRef)
  10283. {
  10284.    return SOM_ResolveD(this,HILittleArrows,HIObject,HandleAppleEvent)
  10285.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  10286. }
  10287.  
  10288. /* method: HandleActivate */
  10289. OSStatus   HandleActivate(Environment *ev,
  10290.         AppleEvent* theEvent,
  10291.         AppleEvent* reply,
  10292.         AEHandlerTableRef handlerTableRef)
  10293. {
  10294.    return SOM_ResolveD(this,HILittleArrows,HIObject,HandleActivate)
  10295.     (this,ev,theEvent,reply,handlerTableRef);
  10296. }
  10297.  
  10298. /* method: HandleDeactivate */
  10299. OSStatus   HandleDeactivate(Environment *ev,
  10300.         AppleEvent* theEvent,
  10301.         AppleEvent* reply,
  10302.         AEHandlerTableRef handlerTableRef)
  10303. {
  10304.    return SOM_ResolveD(this,HILittleArrows,HIObject,HandleDeactivate)
  10305.     (this,ev,theEvent,reply,handlerTableRef);
  10306. }
  10307.  
  10308. /* method: HandleNavigation */
  10309. OSStatus   HandleNavigation(Environment *ev,
  10310.         SInt8 key,
  10311.         SInt8 keyCode,
  10312.         EventModifiers modifiers,
  10313.         AppleEvent* theEvent,
  10314.         AppleEvent* reply,
  10315.         AEHandlerTableRef handlerTableRef)
  10316. {
  10317.    return SOM_ResolveD(this,HILittleArrows,HIObject,HandleNavigation)
  10318.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  10319. }
  10320.  
  10321. /* method: HandleMouseDownInContent */
  10322. OSStatus   HandleMouseDownInContent(Environment *ev,
  10323.         Point* portLocalWhere,
  10324.         EventModifiers modifiers,
  10325.         AppleEvent* theEvent,
  10326.         AppleEvent* reply,
  10327.         AEHandlerTableRef handlerTableRef)
  10328. {
  10329.    return SOM_ResolveD(this,HILittleArrows,HIObject,HandleMouseDownInContent)
  10330.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  10331. }
  10332.  
  10333. /* method: HandleMouseMovedInContent */
  10334. OSStatus   HandleMouseMovedInContent(Environment *ev,
  10335.         Point* portLocalWhere,
  10336.         EventModifiers modifiers,
  10337.         AppleEvent* theEvent,
  10338.         AppleEvent* reply,
  10339.         AEHandlerTableRef handlerTableRef)
  10340. {
  10341.    return SOM_ResolveD(this,HILittleArrows,HIObject,HandleMouseMovedInContent)
  10342.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  10343. }
  10344.  
  10345. /* method: HandleMouseStoppedMovingInContent */
  10346. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  10347.         Point* portLocalWhere,
  10348.         EventModifiers modifiers,
  10349.         AppleEvent* theEvent,
  10350.         AppleEvent* reply,
  10351.         AEHandlerTableRef handlerTableRef)
  10352. {
  10353.    return SOM_ResolveD(this,HILittleArrows,HIObject,HandleMouseStoppedMovingInContent)
  10354.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  10355. }
  10356.  
  10357. /* method: HandleMouseUpInContent */
  10358. OSStatus   HandleMouseUpInContent(Environment *ev,
  10359.         Point* portLocalWhere,
  10360.         EventModifiers modifiers,
  10361.         AppleEvent* theEvent,
  10362.         AppleEvent* reply,
  10363.         AEHandlerTableRef handlerTableRef)
  10364. {
  10365.    return SOM_ResolveD(this,HILittleArrows,HIObject,HandleMouseUpInContent)
  10366.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  10367. }
  10368.  
  10369. /* method: TakeUserInputFocus */
  10370. void   TakeUserInputFocus(Environment *ev)
  10371. {
  10372.    SOM_ResolveD(this,HILittleArrows,HIObject,TakeUserInputFocus)
  10373.     (this,ev);
  10374. }
  10375.  
  10376. /* method: ReleaseUserInputFocus */
  10377. void   ReleaseUserInputFocus(Environment *ev)
  10378. {
  10379.    SOM_ResolveD(this,HILittleArrows,HIObject,ReleaseUserInputFocus)
  10380.     (this,ev);
  10381. }
  10382.  
  10383. /* method: HasUserInputFocus */
  10384. boolean   HasUserInputFocus(Environment *ev)
  10385. {
  10386.    return SOM_ResolveD(this,HILittleArrows,HIObject,HasUserInputFocus)
  10387.     (this,ev);
  10388. }
  10389.  
  10390. /* method: CanReleaseUserInputFocus */
  10391. boolean   CanReleaseUserInputFocus(Environment *ev)
  10392. {
  10393.    return SOM_ResolveD(this,HILittleArrows,HIObject,CanReleaseUserInputFocus)
  10394.     (this,ev);
  10395. }
  10396.  
  10397. /* method: SetUserInputFocusFlags */
  10398. void   SetUserInputFocusFlags(Environment *ev,
  10399.         HIUserInputFocusFlags flags)
  10400. {
  10401.    SOM_ResolveD(this,HILittleArrows,HIObject,SetUserInputFocusFlags)
  10402.     (this,ev,flags);
  10403. }
  10404.  
  10405. /* method: GetUserInputFocusFlags */
  10406. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  10407. {
  10408.    return SOM_ResolveD(this,HILittleArrows,HIObject,GetUserInputFocusFlags)
  10409.     (this,ev);
  10410. }
  10411.  
  10412. /* method: SetTitle */
  10413. OSStatus   SetTitle(Environment *ev,
  10414.         ConstHIImageRef title,
  10415.         HIAdoptionFlags disposalAdoptionFlags)
  10416. {
  10417.    return SOM_ResolveD(this,HILittleArrows,HIObject,SetTitle)
  10418.     (this,ev,title,disposalAdoptionFlags);
  10419. }
  10420.  
  10421. /* method: GetTitle */
  10422. OSStatus   GetTitle(Environment *ev,
  10423.         HIImageRef* title)
  10424. {
  10425.    return SOM_ResolveD(this,HILittleArrows,HIObject,GetTitle)
  10426.     (this,ev,title);
  10427. }
  10428.  
  10429. /* method: Draw */
  10430. void   Draw(Environment *ev,
  10431.         CGrafPtr whichPort,
  10432.         RgnHandle drawRgn)
  10433. {
  10434.    SOM_ResolveD(this,HILittleArrows,HIObject,Draw)
  10435.     (this,ev,whichPort,drawRgn);
  10436. }
  10437.  
  10438. /* method: Erase */
  10439. void   Erase(Environment *ev,
  10440.         CGrafPtr whichPort,
  10441.         RgnHandle eraseRgn)
  10442. {
  10443.    SOM_ResolveD(this,HILittleArrows,HIObject,Erase)
  10444.     (this,ev,whichPort,eraseRgn);
  10445. }
  10446.  
  10447. /* method: Invalidate */
  10448. void   Invalidate(Environment *ev)
  10449. {
  10450.    SOM_ResolveD(this,HILittleArrows,HIObject,Invalidate)
  10451.     (this,ev);
  10452. }
  10453.  
  10454. /* method: GetDrawingMode */
  10455. HIDrawingMode   GetDrawingMode(Environment *ev)
  10456. {
  10457.    return SOM_ResolveD(this,HILittleArrows,HIObject,GetDrawingMode)
  10458.     (this,ev);
  10459. }
  10460.  
  10461. /* method: SetDrawingMode */
  10462. void   SetDrawingMode(Environment *ev,
  10463.         HIDrawingMode drawingMode)
  10464. {
  10465.    SOM_ResolveD(this,HILittleArrows,HIObject,SetDrawingMode)
  10466.     (this,ev,drawingMode);
  10467. }
  10468.  
  10469. /* method: SetBackgroundPattern */
  10470. void   SetBackgroundPattern(Environment *ev,
  10471.         PixPatHandle backgroundPattern)
  10472. {
  10473.    SOM_ResolveD(this,HILittleArrows,HIObject,SetBackgroundPattern)
  10474.     (this,ev,backgroundPattern);
  10475. }
  10476.  
  10477. /* method: GetBackgroundPattern */
  10478. PixPatHandle   GetBackgroundPattern(Environment *ev)
  10479. {
  10480.    return SOM_ResolveD(this,HILittleArrows,HIObject,GetBackgroundPattern)
  10481.     (this,ev);
  10482. }
  10483.  
  10484. /* method: Cut */
  10485. void   Cut(Environment *ev)
  10486. {
  10487.    SOM_ResolveD(this,HILittleArrows,HIObject,Cut)
  10488.     (this,ev);
  10489. }
  10490.  
  10491. /* method: Copy */
  10492. void   Copy(Environment *ev)
  10493. {
  10494.    SOM_ResolveD(this,HILittleArrows,HIObject,Copy)
  10495.     (this,ev);
  10496. }
  10497.  
  10498. /* method: Paste */
  10499. void   Paste(Environment *ev)
  10500. {
  10501.    SOM_ResolveD(this,HILittleArrows,HIObject,Paste)
  10502.     (this,ev);
  10503. }
  10504.  
  10505. /* method: Clear */
  10506. void   Clear(Environment *ev)
  10507. {
  10508.    SOM_ResolveD(this,HILittleArrows,HIObject,Clear)
  10509.     (this,ev);
  10510. }
  10511.  
  10512. /* method: GetClipboardSupportFlags */
  10513. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  10514. {
  10515.    return SOM_ResolveD(this,HILittleArrows,HIObject,GetClipboardSupportFlags)
  10516.     (this,ev);
  10517. }
  10518.  
  10519. /* method: AddStateChangeCallback */
  10520. OSStatus   AddStateChangeCallback(Environment *ev,
  10521.         HIStateChangeCallbackProcPtr changedStateCallback,
  10522.         HIStateChangeCallbackRef* newCallbackRef)
  10523. {
  10524.    return SOM_ResolveD(this,HILittleArrows,HIObject,AddStateChangeCallback)
  10525.     (this,ev,changedStateCallback,newCallbackRef);
  10526. }
  10527.  
  10528. /* method: RemoveStateChangeCallback */
  10529. OSStatus   RemoveStateChangeCallback(Environment *ev,
  10530.         HIStateChangeCallbackRef callbackRefToRemove)
  10531. {
  10532.    return SOM_ResolveD(this,HILittleArrows,HIObject,RemoveStateChangeCallback)
  10533.     (this,ev,callbackRefToRemove);
  10534. }
  10535.  
  10536. /* noself procedure: GetHIObjectFromRefLabel */
  10537. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  10538.         RefLabel* identifier,
  10539.         ItemCount requestedObjects,
  10540.         ItemCount* totalObjects,
  10541.         HIObject** theObjects)
  10542. {
  10543. return ((somTD_HILittleArrows_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  10544.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  10545. }
  10546.  
  10547. /* noself procedure: GetNewHIObject */
  10548. static OSStatus   GetNewHIObject(Environment *ev,
  10549.         AESubDesc* objectInitializer,
  10550.         HIObject** newObject)
  10551. {
  10552. return ((somTD_HILittleArrows_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  10553.     (ev,objectInitializer,newObject);
  10554. }
  10555.  
  10556. /* noself procedure: GetNewHIObjectFromResource */
  10557. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  10558.         ResID objectInitializerResourceID,
  10559.         HIObject** newObject)
  10560. {
  10561. return ((somTD_HILittleArrows_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  10562.     (ev,objectInitializerResourceID,newObject);
  10563. }
  10564.  
  10565. /* method: DrawContent */
  10566. void   DrawContent(Environment *ev,
  10567.         CGrafPtr whichPort,
  10568.         RgnHandle drawRgn)
  10569. {
  10570.    SOM_ResolveD(this,HILittleArrows,HIObject,DrawContent)
  10571.     (this,ev,whichPort,drawRgn);
  10572. }
  10573.  
  10574. /* method: EraseContent */
  10575. void   EraseContent(Environment *ev,
  10576.         CGrafPtr whichPort,
  10577.         RgnHandle regionToErase)
  10578. {
  10579.    SOM_ResolveD(this,HILittleArrows,HIObject,EraseContent)
  10580.     (this,ev,whichPort,regionToErase);
  10581. }
  10582.  
  10583. /* method: TranslatePoint */
  10584. void   TranslatePoint(Environment *ev,
  10585.         HICoordinateSystem translateFrom,
  10586.         HICoordinateSystem translateTo,
  10587.         Point* sourcePoint,
  10588.         Point* translatedPoint)
  10589. {
  10590.    SOM_ResolveD(this,HILittleArrows,HIObject,TranslatePoint)
  10591.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  10592. }
  10593.  
  10594. /* method: TranslateRect */
  10595. void   TranslateRect(Environment *ev,
  10596.         HICoordinateSystem translateFrom,
  10597.         HICoordinateSystem translateTo,
  10598.         Rect* sourceRect,
  10599.         Rect* translatedRect)
  10600. {
  10601.    SOM_ResolveD(this,HILittleArrows,HIObject,TranslateRect)
  10602.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  10603. }
  10604.  
  10605. /* method: StateChanged */
  10606. void   StateChanged(Environment *ev,
  10607.         HIStateChangeCodeCreator selectorCreator,
  10608.         HIStateChangeCode changedCode)
  10609. {
  10610.    SOM_ResolveD(this,HILittleArrows,HIObject,StateChanged)
  10611.     (this,ev,selectorCreator,changedCode);
  10612. }
  10613.  
  10614. /* method: SetClipboardSupportFlags */
  10615. void   SetClipboardSupportFlags(Environment *ev,
  10616.         HIClipboardSupportFlags flags)
  10617. {
  10618.    SOM_ResolveD(this,HILittleArrows,HIObject,SetClipboardSupportFlags)
  10619.     (this,ev,flags);
  10620. }
  10621.  
  10622. /* method: Verify */
  10623. OSStatus   Verify(Environment *ev)
  10624. {
  10625.    return SOM_ResolveD(this,HILittleArrows,HIObject,Verify)
  10626.     (this,ev);
  10627. }
  10628.  
  10629. /* method: somInit */
  10630. void   somInit()
  10631. {
  10632.    SOM_ResolveD(this,HILittleArrows,SOMObject,somInit)
  10633.     (this);
  10634. }
  10635.  
  10636. /* method: somUninit */
  10637. void   somUninit()
  10638. {
  10639.    SOM_ResolveD(this,HILittleArrows,SOMObject,somUninit)
  10640.     (this);
  10641. }
  10642.  
  10643. /* method: somDuplicateReference */
  10644. SOMObject*   somDuplicateReference()
  10645. {
  10646.    return SOM_ResolveD(this,HILittleArrows,SOMObject,somDuplicateReference)
  10647.     (this);
  10648. }
  10649.  
  10650. /* method: somCompareReference */
  10651. boolean   somCompareReference(SOMObject* anObject)
  10652. {
  10653.    return SOM_ResolveD(this,HILittleArrows,SOMObject,somCompareReference)
  10654.     (this,anObject);
  10655. }
  10656.  
  10657. /* method: somRelease */
  10658. SOMObject*   somRelease()
  10659. {
  10660.    return SOM_ResolveD(this,HILittleArrows,SOMObject,somRelease)
  10661.     (this);
  10662. }
  10663.  
  10664. /* method: somFree */
  10665. void   somFree()
  10666. {
  10667.    SOM_ResolveD(this,HILittleArrows,SOMObject,somFree)
  10668.     (this);
  10669. }
  10670.  
  10671. /* method: somCanDelete */
  10672. boolean   somCanDelete()
  10673. {
  10674.    return SOM_ResolveD(this,HILittleArrows,SOMObject,somCanDelete)
  10675.     (this);
  10676. }
  10677.  
  10678. /* method: somGetClass */
  10679. SOMClass*   somGetClass()
  10680. {
  10681.    return SOM_ResolveD(this,HILittleArrows,SOMObject,somGetClass)
  10682.     (this);
  10683. }
  10684.  
  10685. /* method: somGetClassName */
  10686. corbastring   somGetClassName()
  10687. {
  10688.    return SOM_ResolveD(this,HILittleArrows,SOMObject,somGetClassName)
  10689.     (this);
  10690. }
  10691.  
  10692. /* method: somGetSize */
  10693. long   somGetSize()
  10694. {
  10695.    return SOM_ResolveD(this,HILittleArrows,SOMObject,somGetSize)
  10696.     (this);
  10697. }
  10698.  
  10699. /* method: somIsA */
  10700. boolean   somIsA(SOMClass* aClassObj)
  10701. {
  10702.    return SOM_ResolveD(this,HILittleArrows,SOMObject,somIsA)
  10703.     (this,aClassObj);
  10704. }
  10705.  
  10706. /* method: somRespondsTo */
  10707. boolean   somRespondsTo(somId mId)
  10708. {
  10709.    return SOM_ResolveD(this,HILittleArrows,SOMObject,somRespondsTo)
  10710.     (this,mId);
  10711. }
  10712.  
  10713. /* method: somIsInstanceOf */
  10714. boolean   somIsInstanceOf(SOMClass* aClassObj)
  10715. {
  10716.    return SOM_ResolveD(this,HILittleArrows,SOMObject,somIsInstanceOf)
  10717.     (this,aClassObj);
  10718. }
  10719.  
  10720. /* va_list method: somDispatch */
  10721. /* the va_list invocation form */
  10722. boolean   HILittleArrows_somDispatch(somToken* retValue,
  10723.         somId methodId,
  10724.         va_list ap)
  10725. {
  10726.    return SOM_ResolveD(this,HILittleArrows,SOMObject,somDispatch)
  10727.     (this,retValue,methodId,ap);
  10728. }
  10729.  
  10730. /* the varargs invocation form */
  10731. boolean   somDispatch(somToken* retValue,
  10732.         somId methodId,
  10733.         ...)
  10734. {
  10735.    va_list ap;
  10736.    va_start(ap, methodId);
  10737.       boolean __somResult = 
  10738.       (boolean) SOM_ResolveD(this,HILittleArrows,SOMObject,somDispatch)
  10739.     (this,retValue,methodId,ap);
  10740.    va_end(ap);
  10741.    return __somResult;
  10742. }
  10743.  
  10744. /* va_list method: somClassDispatch */
  10745. /* the va_list invocation form */
  10746. boolean   HILittleArrows_somClassDispatch(SOMClass* clsObj,
  10747.         somToken* retValue,
  10748.         somId methodId,
  10749.         va_list ap)
  10750. {
  10751.    return SOM_ResolveD(this,HILittleArrows,SOMObject,somClassDispatch)
  10752.     (this,clsObj,retValue,methodId,ap);
  10753. }
  10754.  
  10755. /* the varargs invocation form */
  10756. boolean   somClassDispatch(SOMClass* clsObj,
  10757.         somToken* retValue,
  10758.         somId methodId,
  10759.         ...)
  10760. {
  10761.    va_list ap;
  10762.    va_start(ap, methodId);
  10763.       boolean __somResult = 
  10764.       (boolean) SOM_ResolveD(this,HILittleArrows,SOMObject,somClassDispatch)
  10765.     (this,clsObj,retValue,methodId,ap);
  10766.    va_end(ap);
  10767.    return __somResult;
  10768. }
  10769.  
  10770. /* method: somCastObj */
  10771. boolean   somCastObj(SOMClass* cls)
  10772. {
  10773.    return SOM_ResolveD(this,HILittleArrows,SOMObject,somCastObj)
  10774.     (this,cls);
  10775. }
  10776.  
  10777. /* method: somResetObj */
  10778. boolean   somResetObj()
  10779. {
  10780.    return SOM_ResolveD(this,HILittleArrows,SOMObject,somResetObj)
  10781.     (this);
  10782. }
  10783.  
  10784. /* method: somPrintSelf */
  10785. SOMObject*   somPrintSelf()
  10786. {
  10787.    return SOM_ResolveD(this,HILittleArrows,SOMObject,somPrintSelf)
  10788.     (this);
  10789. }
  10790.  
  10791. /* method: somDumpSelf */
  10792. void   somDumpSelf(long level)
  10793. {
  10794.    SOM_ResolveD(this,HILittleArrows,SOMObject,somDumpSelf)
  10795.     (this,level);
  10796. }
  10797.  
  10798. /* method: somDumpSelfInt */
  10799. void   somDumpSelfInt(long level)
  10800. {
  10801.    SOM_ResolveD(this,HILittleArrows,SOMObject,somDumpSelfInt)
  10802.     (this,level);
  10803. }
  10804.  
  10805. };   /* HILittleArrows */
  10806.  
  10807.  
  10808.  
  10809. #endif       /* SOM_HILittleArrows_xh */
  10810.  
  10811. #ifndef SOM_HIProgressIndicator_xh
  10812. #define SOM_HIProgressIndicator_xh
  10813.  
  10814. class HIProgressIndicator;
  10815.  
  10816. #define HIProgressIndicator_MajorVersion 0
  10817. #define HIProgressIndicator_MinorVersion 0
  10818.  
  10819. /* C++ SOM defs */
  10820. #include <somcls.xh>
  10821. #include <somcm.xh>
  10822.  
  10823. /* C++ parent defs */
  10824. #ifndef SOM_HIControl_xh
  10825. #include <HIControls.xh>
  10826. #endif
  10827.  
  10828. #ifndef HIProgressIndicator_API
  10829. #define HIProgressIndicator_API
  10830. /*
  10831.  * -- The Class API
  10832.  */
  10833.  
  10834. /*
  10835.  * Start of user-defined types:
  10836.  */
  10837.  
  10838. /*
  10839.  * End of user-defined types.
  10840.  */
  10841.  
  10842. #ifdef OLDIBMSOMAPISUPPORT
  10843. #define HIProgressIndicatorCClassData HIProgressIndicatorClassData
  10844. #define HIProgressIndicatorNewClass(major,minor) somNewVersionedClassReference(HIProgressIndicator,major,minor)
  10845. #endif
  10846.  
  10847. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  10848. #define HIProgressIndicatorMetaClass SOMClass
  10849.  
  10850. #if PRAGMA_ALIGN_SUPPORTED
  10851. #  pragma options align=power
  10852. #endif
  10853.  
  10854. /* The API to the HIProgressIndicator class object, and the methods it introduces. */
  10855. SOMEXTERN struct HIProgressIndicatorClassDataStructure {
  10856. #ifdef OLDIBMSOMAPISUPPORT
  10857.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  10858. #else
  10859.     long zero;
  10860. #endif
  10861.     somStaticClassInfo *sci;
  10862.     somDToken        instanceDataToken;
  10863.     long reserved [3];
  10864.     somMToken InitProgressIndicator;
  10865.     somMToken SetBehavior;
  10866.     somMToken GetBehavior;
  10867.     somMToken SpinForward;
  10868.     somMToken SpinBackward;
  10869. } SOMDLINK HIProgressIndicatorClassData;
  10870.  
  10871. #if PRAGMA_ALIGN_SUPPORTED
  10872. #  pragma options align=reset
  10873. #endif
  10874.  
  10875. #if !defined(HIProgressIndicator_Class_Source) && !defined(SOM_Module_hicontrols_Source)
  10876. #if PRAGMA_IMPORT_SUPPORTED
  10877. #pragma import list HIProgressIndicatorClassData
  10878. #endif
  10879. #endif
  10880.  
  10881.  
  10882. /*
  10883.  * -- Typedefs for HIProgressIndicator Method Procedures
  10884.  */
  10885. SOMEXTERN {
  10886. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_InitProgressIndicator)(HIProgressIndicator *somSelf, Environment *ev,
  10887.         RefLabel* identifier,
  10888.         HIWindow* window,
  10889.         Rect* bounds,
  10890.         HIControlBehavior behavior);
  10891. typedef void   (* SOMLINK somTD_HIProgressIndicator_SetBehavior)(HIProgressIndicator *somSelf, Environment *ev,
  10892.         HIControlBehavior newBehavior);
  10893. typedef HIControlBehavior   (* SOMLINK somTD_HIProgressIndicator_GetBehavior)(HIProgressIndicator *somSelf, Environment *ev);
  10894. typedef void   (* SOMLINK somTD_HIProgressIndicator_SpinForward)(HIProgressIndicator *somSelf, Environment *ev);
  10895. typedef void   (* SOMLINK somTD_HIProgressIndicator_SpinBackward)(HIProgressIndicator *somSelf, Environment *ev);
  10896.  
  10897. /*
  10898.  * -- Typedefs for Inherited Methods
  10899.  */
  10900. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_InitControl)(HIProgressIndicator *somSelf, Environment *ev,
  10901.         RefLabel* identifier,
  10902.         HIWindow* window,
  10903.         Rect* bounds,
  10904.         SInt32 value,
  10905.         SInt32 minimumValue,
  10906.         SInt32 maximumValue);
  10907. typedef void   (* SOMLINK somTD_HIProgressIndicator_SetValue)(HIProgressIndicator *somSelf, Environment *ev,
  10908.         SInt32 newValue);
  10909. typedef SInt32   (* SOMLINK somTD_HIProgressIndicator_GetValue)(HIProgressIndicator *somSelf, Environment *ev);
  10910. typedef void   (* SOMLINK somTD_HIProgressIndicator_SetMinimum)(HIProgressIndicator *somSelf, Environment *ev,
  10911.         SInt32 newMinimum);
  10912. typedef SInt32   (* SOMLINK somTD_HIProgressIndicator_GetMinimum)(HIProgressIndicator *somSelf, Environment *ev);
  10913. typedef void   (* SOMLINK somTD_HIProgressIndicator_SetMaximum)(HIProgressIndicator *somSelf, Environment *ev,
  10914.         SInt32 newMaximum);
  10915. typedef SInt32   (* SOMLINK somTD_HIProgressIndicator_GetMaximum)(HIProgressIndicator *somSelf, Environment *ev);
  10916. typedef void   (* SOMLINK somTD_HIProgressIndicator_SimulateSelection)(HIProgressIndicator *somSelf, Environment *ev);
  10917. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIProgressIndicator_GetEmbeddingParent)(HIProgressIndicator *somSelf, Environment *ev);
  10918. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_InitPanel)(HIProgressIndicator *somSelf, Environment *ev,
  10919.         RefLabel* identifier,
  10920.         HIWindow* window,
  10921.         Rect* bounds);
  10922. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_RegisterInterestInAppleEvent)(HIProgressIndicator *somSelf, Environment *ev,
  10923.         AEHandlerTableRef table,
  10924.         AEEventClass eventClass,
  10925.         AEEventID eventID,
  10926.         HIEventRoutingType eventRouting);
  10927. typedef boolean   (* SOMLINK somTD_HIProgressIndicator_HasValidContent)(HIProgressIndicator *somSelf, Environment *ev);
  10928. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_GetDeepCollectionItemData)(HIProgressIndicator *somSelf, Environment *ev,
  10929.         CollectionTag tag,
  10930.         SInt32 id,
  10931.         ByteCount sizeAllowed,
  10932.         ByteCount* sizeReturned,
  10933.         void* itemData);
  10934. typedef HIWindow*   (* SOMLINK somTD_HIProgressIndicator_GetWindow)(HIProgressIndicator *somSelf, Environment *ev);
  10935. typedef CGrafPtr   (* SOMLINK somTD_HIProgressIndicator_GetPort)(HIProgressIndicator *somSelf, Environment *ev);
  10936. typedef void   (* SOMLINK somTD_HIProgressIndicator_GetRefLabel)(HIProgressIndicator *somSelf, Environment *ev,
  10937.         RefLabel* identifier);
  10938. typedef Collection   (* SOMLINK somTD_HIProgressIndicator_GetCollection)(HIProgressIndicator *somSelf, Environment *ev);
  10939. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_Init)(HIProgressIndicator *somSelf, Environment *ev,
  10940.         RefLabel* identifier,
  10941.         Rect* boundingRect);
  10942. typedef void   (* SOMLINK somTD_HIProgressIndicator_Terminate)(HIProgressIndicator *somSelf, Environment *ev);
  10943. typedef HIObject*   (* SOMLINK somTD_HIProgressIndicator_Clone)(HIProgressIndicator *somSelf, Environment *ev);
  10944. typedef void   (* SOMLINK somTD_HIProgressIndicator_Release)(HIProgressIndicator *somSelf, Environment *ev);
  10945. typedef ItemCount   (* SOMLINK somTD_HIProgressIndicator_GetOwnerCount)(HIProgressIndicator *somSelf, Environment *ev);
  10946. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_InitFromAERecord)(HIProgressIndicator *somSelf, Environment *ev,
  10947.         AESubDesc* baseInitializerData,
  10948.         AESubDesc* initializerDataForClass,
  10949.         HIAERecordDataFormat dataFormat);
  10950. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_WriteToAERecord)(HIProgressIndicator *somSelf, Environment *ev,
  10951.         AERecord* dataForSubclass,
  10952.         AERecord* objectData,
  10953.         HIAERecordDataFormat dataFormat);
  10954. typedef void   (* SOMLINK somTD_HIProgressIndicator_CalculateOptimalSize)(HIProgressIndicator *somSelf, Environment *ev,
  10955.         SInt16* optimalWidth,
  10956.         SInt16* optimalHeight);
  10957. typedef void   (* SOMLINK somTD_HIProgressIndicator_GetBoundingRect)(HIProgressIndicator *somSelf, Environment *ev,
  10958.         HICoordinateSystem coordinate,
  10959.         Rect* boundingRect);
  10960. typedef void   (* SOMLINK somTD_HIProgressIndicator_SetBoundingRect)(HIProgressIndicator *somSelf, Environment *ev,
  10961.         HICoordinateSystem coordinate,
  10962.         Rect* newBoundingRect);
  10963. typedef void   (* SOMLINK somTD_HIProgressIndicator_SetPosition)(HIProgressIndicator *somSelf, Environment *ev,
  10964.         HICoordinateSystem coordinate,
  10965.         Point* newPosition);
  10966. typedef void   (* SOMLINK somTD_HIProgressIndicator_SetSize)(HIProgressIndicator *somSelf, Environment *ev,
  10967.         SInt16 width,
  10968.         SInt16 height);
  10969. typedef void   (* SOMLINK somTD_HIProgressIndicator_GetUpdateRect)(HIProgressIndicator *somSelf, Environment *ev,
  10970.         HICoordinateSystem coordinate,
  10971.         Rect* updateRect);
  10972. typedef void   (* SOMLINK somTD_HIProgressIndicator_Enable)(HIProgressIndicator *somSelf, Environment *ev);
  10973. typedef void   (* SOMLINK somTD_HIProgressIndicator_Disable)(HIProgressIndicator *somSelf, Environment *ev);
  10974. typedef boolean   (* SOMLINK somTD_HIProgressIndicator_IsEnabled)(HIProgressIndicator *somSelf, Environment *ev);
  10975. typedef void   (* SOMLINK somTD_HIProgressIndicator_Show)(HIProgressIndicator *somSelf, Environment *ev);
  10976. typedef void   (* SOMLINK somTD_HIProgressIndicator_Hide)(HIProgressIndicator *somSelf, Environment *ev);
  10977. typedef boolean   (* SOMLINK somTD_HIProgressIndicator_IsVisible)(HIProgressIndicator *somSelf, Environment *ev);
  10978. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_HandleAppleEvent)(HIProgressIndicator *somSelf, Environment *ev,
  10979.         AEEventClass eventClass,
  10980.         AEEventID eventID,
  10981.         AppleEvent* theEvent,
  10982.         AppleEvent* reply,
  10983.         AEHandlerTableRef handlerTableRef);
  10984. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_HandleActivate)(HIProgressIndicator *somSelf, Environment *ev,
  10985.         AppleEvent* theEvent,
  10986.         AppleEvent* reply,
  10987.         AEHandlerTableRef handlerTableRef);
  10988. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_HandleDeactivate)(HIProgressIndicator *somSelf, Environment *ev,
  10989.         AppleEvent* theEvent,
  10990.         AppleEvent* reply,
  10991.         AEHandlerTableRef handlerTableRef);
  10992. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_HandleNavigation)(HIProgressIndicator *somSelf, Environment *ev,
  10993.         SInt8 key,
  10994.         SInt8 keyCode,
  10995.         EventModifiers modifiers,
  10996.         AppleEvent* theEvent,
  10997.         AppleEvent* reply,
  10998.         AEHandlerTableRef handlerTableRef);
  10999. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_HandleMouseDownInContent)(HIProgressIndicator *somSelf, Environment *ev,
  11000.         Point* portLocalWhere,
  11001.         EventModifiers modifiers,
  11002.         AppleEvent* theEvent,
  11003.         AppleEvent* reply,
  11004.         AEHandlerTableRef handlerTableRef);
  11005. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_HandleMouseMovedInContent)(HIProgressIndicator *somSelf, Environment *ev,
  11006.         Point* portLocalWhere,
  11007.         EventModifiers modifiers,
  11008.         AppleEvent* theEvent,
  11009.         AppleEvent* reply,
  11010.         AEHandlerTableRef handlerTableRef);
  11011. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_HandleMouseStoppedMovingInContent)(HIProgressIndicator *somSelf, Environment *ev,
  11012.         Point* portLocalWhere,
  11013.         EventModifiers modifiers,
  11014.         AppleEvent* theEvent,
  11015.         AppleEvent* reply,
  11016.         AEHandlerTableRef handlerTableRef);
  11017. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_HandleMouseUpInContent)(HIProgressIndicator *somSelf, Environment *ev,
  11018.         Point* portLocalWhere,
  11019.         EventModifiers modifiers,
  11020.         AppleEvent* theEvent,
  11021.         AppleEvent* reply,
  11022.         AEHandlerTableRef handlerTableRef);
  11023. typedef void   (* SOMLINK somTD_HIProgressIndicator_TakeUserInputFocus)(HIProgressIndicator *somSelf, Environment *ev);
  11024. typedef void   (* SOMLINK somTD_HIProgressIndicator_ReleaseUserInputFocus)(HIProgressIndicator *somSelf, Environment *ev);
  11025. typedef boolean   (* SOMLINK somTD_HIProgressIndicator_HasUserInputFocus)(HIProgressIndicator *somSelf, Environment *ev);
  11026. typedef boolean   (* SOMLINK somTD_HIProgressIndicator_CanReleaseUserInputFocus)(HIProgressIndicator *somSelf, Environment *ev);
  11027. typedef void   (* SOMLINK somTD_HIProgressIndicator_SetUserInputFocusFlags)(HIProgressIndicator *somSelf, Environment *ev,
  11028.         HIUserInputFocusFlags flags);
  11029. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIProgressIndicator_GetUserInputFocusFlags)(HIProgressIndicator *somSelf, Environment *ev);
  11030. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_SetTitle)(HIProgressIndicator *somSelf, Environment *ev,
  11031.         ConstHIImageRef title,
  11032.         HIAdoptionFlags disposalAdoptionFlags);
  11033. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_GetTitle)(HIProgressIndicator *somSelf, Environment *ev,
  11034.         HIImageRef* title);
  11035. typedef void   (* SOMLINK somTD_HIProgressIndicator_Draw)(HIProgressIndicator *somSelf, Environment *ev,
  11036.         CGrafPtr whichPort,
  11037.         RgnHandle drawRgn);
  11038. typedef void   (* SOMLINK somTD_HIProgressIndicator_Erase)(HIProgressIndicator *somSelf, Environment *ev,
  11039.         CGrafPtr whichPort,
  11040.         RgnHandle eraseRgn);
  11041. typedef void   (* SOMLINK somTD_HIProgressIndicator_Invalidate)(HIProgressIndicator *somSelf, Environment *ev);
  11042. typedef HIDrawingMode   (* SOMLINK somTD_HIProgressIndicator_GetDrawingMode)(HIProgressIndicator *somSelf, Environment *ev);
  11043. typedef void   (* SOMLINK somTD_HIProgressIndicator_SetDrawingMode)(HIProgressIndicator *somSelf, Environment *ev,
  11044.         HIDrawingMode drawingMode);
  11045. typedef void   (* SOMLINK somTD_HIProgressIndicator_SetBackgroundPattern)(HIProgressIndicator *somSelf, Environment *ev,
  11046.         PixPatHandle backgroundPattern);
  11047. typedef PixPatHandle   (* SOMLINK somTD_HIProgressIndicator_GetBackgroundPattern)(HIProgressIndicator *somSelf, Environment *ev);
  11048. typedef void   (* SOMLINK somTD_HIProgressIndicator_Cut)(HIProgressIndicator *somSelf, Environment *ev);
  11049. typedef void   (* SOMLINK somTD_HIProgressIndicator_Copy)(HIProgressIndicator *somSelf, Environment *ev);
  11050. typedef void   (* SOMLINK somTD_HIProgressIndicator_Paste)(HIProgressIndicator *somSelf, Environment *ev);
  11051. typedef void   (* SOMLINK somTD_HIProgressIndicator_Clear)(HIProgressIndicator *somSelf, Environment *ev);
  11052. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIProgressIndicator_GetClipboardSupportFlags)(HIProgressIndicator *somSelf, Environment *ev);
  11053. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_AddStateChangeCallback)(HIProgressIndicator *somSelf, Environment *ev,
  11054.         HIStateChangeCallbackProcPtr changedStateCallback,
  11055.         HIStateChangeCallbackRef* newCallbackRef);
  11056. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_RemoveStateChangeCallback)(HIProgressIndicator *somSelf, Environment *ev,
  11057.         HIStateChangeCallbackRef callbackRefToRemove);
  11058. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_GetHIObjectFromRefLabel)(Environment *ev,
  11059.         RefLabel* identifier,
  11060.         ItemCount requestedObjects,
  11061.         ItemCount* totalObjects,
  11062.         HIObject** theObjects);
  11063. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_GetNewHIObject)(Environment *ev,
  11064.         AESubDesc* objectInitializer,
  11065.         HIObject** newObject);
  11066. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_GetNewHIObjectFromResource)(Environment *ev,
  11067.         ResID objectInitializerResourceID,
  11068.         HIObject** newObject);
  11069. typedef void   (* SOMLINK somTD_HIProgressIndicator_DrawContent)(HIProgressIndicator *somSelf, Environment *ev,
  11070.         CGrafPtr whichPort,
  11071.         RgnHandle drawRgn);
  11072. typedef void   (* SOMLINK somTD_HIProgressIndicator_EraseContent)(HIProgressIndicator *somSelf, Environment *ev,
  11073.         CGrafPtr whichPort,
  11074.         RgnHandle regionToErase);
  11075. typedef void   (* SOMLINK somTD_HIProgressIndicator_TranslatePoint)(HIProgressIndicator *somSelf, Environment *ev,
  11076.         HICoordinateSystem translateFrom,
  11077.         HICoordinateSystem translateTo,
  11078.         Point* sourcePoint,
  11079.         Point* translatedPoint);
  11080. typedef void   (* SOMLINK somTD_HIProgressIndicator_TranslateRect)(HIProgressIndicator *somSelf, Environment *ev,
  11081.         HICoordinateSystem translateFrom,
  11082.         HICoordinateSystem translateTo,
  11083.         Rect* sourceRect,
  11084.         Rect* translatedRect);
  11085. typedef void   (* SOMLINK somTD_HIProgressIndicator_StateChanged)(HIProgressIndicator *somSelf, Environment *ev,
  11086.         HIStateChangeCodeCreator selectorCreator,
  11087.         HIStateChangeCode changedCode);
  11088. typedef void   (* SOMLINK somTD_HIProgressIndicator_SetClipboardSupportFlags)(HIProgressIndicator *somSelf, Environment *ev,
  11089.         HIClipboardSupportFlags flags);
  11090. typedef OSStatus   (* SOMLINK somTD_HIProgressIndicator_Verify)(HIProgressIndicator *somSelf, Environment *ev);
  11091. typedef void   (* SOMLINK somTD_HIProgressIndicator_somInit)(HIProgressIndicator *somSelf);
  11092. typedef void   (* SOMLINK somTD_HIProgressIndicator_somUninit)(HIProgressIndicator *somSelf);
  11093. typedef SOMObject*   (* SOMLINK somTD_HIProgressIndicator_somDuplicateReference)(HIProgressIndicator *somSelf);
  11094. typedef boolean   (* SOMLINK somTD_HIProgressIndicator_somCompareReference)(HIProgressIndicator *somSelf,
  11095.         SOMObject* anObject);
  11096. typedef SOMObject*   (* SOMLINK somTD_HIProgressIndicator_somRelease)(HIProgressIndicator *somSelf);
  11097. typedef void   (* SOMLINK somTD_HIProgressIndicator_somFree)(HIProgressIndicator *somSelf);
  11098. typedef boolean   (* SOMLINK somTD_HIProgressIndicator_somCanDelete)(HIProgressIndicator *somSelf);
  11099. typedef SOMClass*   (* SOMLINK somTD_HIProgressIndicator_somGetClass)(HIProgressIndicator *somSelf);
  11100. typedef corbastring   (* SOMLINK somTD_HIProgressIndicator_somGetClassName)(HIProgressIndicator *somSelf);
  11101. typedef long   (* SOMLINK somTD_HIProgressIndicator_somGetSize)(HIProgressIndicator *somSelf);
  11102. typedef boolean   (* SOMLINK somTD_HIProgressIndicator_somIsA)(HIProgressIndicator *somSelf,
  11103.         SOMClass* aClassObj);
  11104. typedef boolean   (* SOMLINK somTD_HIProgressIndicator_somRespondsTo)(HIProgressIndicator *somSelf,
  11105.         somId mId);
  11106. typedef boolean   (* SOMLINK somTD_HIProgressIndicator_somIsInstanceOf)(HIProgressIndicator *somSelf,
  11107.         SOMClass* aClassObj);
  11108. typedef boolean   (* SOMLINK somTD_HIProgressIndicator_somDispatch)(HIProgressIndicator *somSelf,
  11109.         somToken* retValue,
  11110.         somId methodId,
  11111.         va_list ap);
  11112. typedef boolean   (* SOMLINK somTD_HIProgressIndicator_somClassDispatch)(HIProgressIndicator *somSelf,
  11113.         SOMClass* clsObj,
  11114.         somToken* retValue,
  11115.         somId methodId,
  11116.         va_list ap);
  11117. typedef boolean   (* SOMLINK somTD_HIProgressIndicator_somCastObj)(HIProgressIndicator *somSelf,
  11118.         SOMClass* cls);
  11119. typedef boolean   (* SOMLINK somTD_HIProgressIndicator_somResetObj)(HIProgressIndicator *somSelf);
  11120. typedef SOMObject*   (* SOMLINK somTD_HIProgressIndicator_somPrintSelf)(HIProgressIndicator *somSelf);
  11121. typedef void   (* SOMLINK somTD_HIProgressIndicator_somDumpSelf)(HIProgressIndicator *somSelf,
  11122.         long level);
  11123. typedef void   (* SOMLINK somTD_HIProgressIndicator_somDumpSelfInt)(HIProgressIndicator *somSelf,
  11124.         long level);
  11125. }
  11126.  
  11127. #endif /* HIProgressIndicator_API */
  11128.  
  11129.  
  11130. /*
  11131.  * -- This emitter treats Method Tokens as Thunks by default.
  11132.  * -- Use the sc modifier "nothunks" to change this default
  11133.  */
  11134. #undef somresolve_
  11135. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  11136.  
  11137. /*
  11138.  * -- The C++ Wrapper Class for HIProgressIndicator
  11139.  */
  11140. class HIProgressIndicator : public HIControl
  11141. {
  11142. public:
  11143.  
  11144. // HIProgressIndicator::new registers use of the class object, and then uses somNew
  11145. // to allocate memory and load the object method table pointer. 
  11146. void *operator new(size_t size)
  11147. {
  11148.     SOM_IgnoreWarning(size);
  11149.     // Allocate memory using the default allocator for HIProgressIndicator, and
  11150.     // clear mem & set method table pointer, call basic initialization
  11151.     return (void*) somNewObject(HIProgressIndicator);
  11152. }
  11153.  
  11154. // HIProgressIndicator::delete uses the default deallocator for the object's class.
  11155. void operator delete(void * obj)
  11156. {
  11157.     if (obj) {
  11158.         SOM_Resolve(obj,SOMObject,somFree)
  11159.            ( (SOMObject*) obj );
  11160.     }
  11161. }
  11162.  
  11163. /* method: InitProgressIndicator */
  11164. OSStatus   InitProgressIndicator(Environment *ev,
  11165.         RefLabel* identifier,
  11166.         HIWindow* window,
  11167.         Rect* bounds,
  11168.         HIControlBehavior behavior)
  11169. {
  11170.    return SOM_ResolveD(this,HIProgressIndicator,HIProgressIndicator,InitProgressIndicator)
  11171.     (this,ev,identifier,window,bounds,behavior);
  11172. }
  11173.  
  11174. /* method: SetBehavior */
  11175. void   SetBehavior(Environment *ev,
  11176.         HIControlBehavior newBehavior)
  11177. {
  11178.    SOM_ResolveD(this,HIProgressIndicator,HIProgressIndicator,SetBehavior)
  11179.     (this,ev,newBehavior);
  11180. }
  11181.  
  11182. /* method: GetBehavior */
  11183. HIControlBehavior   GetBehavior(Environment *ev)
  11184. {
  11185.    return SOM_ResolveD(this,HIProgressIndicator,HIProgressIndicator,GetBehavior)
  11186.     (this,ev);
  11187. }
  11188.  
  11189. /* method: SpinForward */
  11190. void   SpinForward(Environment *ev)
  11191. {
  11192.    SOM_ResolveD(this,HIProgressIndicator,HIProgressIndicator,SpinForward)
  11193.     (this,ev);
  11194. }
  11195.  
  11196. /* method: SpinBackward */
  11197. void   SpinBackward(Environment *ev)
  11198. {
  11199.    SOM_ResolveD(this,HIProgressIndicator,HIProgressIndicator,SpinBackward)
  11200.     (this,ev);
  11201. }
  11202.  
  11203.  
  11204. /*
  11205.  * -- Inherited methods
  11206.  */
  11207. /* method: InitControl */
  11208. OSStatus   InitControl(Environment *ev,
  11209.         RefLabel* identifier,
  11210.         HIWindow* window,
  11211.         Rect* bounds,
  11212.         SInt32 value,
  11213.         SInt32 minimumValue,
  11214.         SInt32 maximumValue)
  11215. {
  11216.    return SOM_ResolveD(this,HIProgressIndicator,HIControl,InitControl)
  11217.     (this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
  11218. }
  11219.  
  11220. /* method: SetValue */
  11221. void   SetValue(Environment *ev,
  11222.         SInt32 newValue)
  11223. {
  11224.    SOM_ResolveD(this,HIProgressIndicator,HIControl,SetValue)
  11225.     (this,ev,newValue);
  11226. }
  11227.  
  11228. /* method: GetValue */
  11229. SInt32   GetValue(Environment *ev)
  11230. {
  11231.    return SOM_ResolveD(this,HIProgressIndicator,HIControl,GetValue)
  11232.     (this,ev);
  11233. }
  11234.  
  11235. /* method: SetMinimum */
  11236. void   SetMinimum(Environment *ev,
  11237.         SInt32 newMinimum)
  11238. {
  11239.    SOM_ResolveD(this,HIProgressIndicator,HIControl,SetMinimum)
  11240.     (this,ev,newMinimum);
  11241. }
  11242.  
  11243. /* method: GetMinimum */
  11244. SInt32   GetMinimum(Environment *ev)
  11245. {
  11246.    return SOM_ResolveD(this,HIProgressIndicator,HIControl,GetMinimum)
  11247.     (this,ev);
  11248. }
  11249.  
  11250. /* method: SetMaximum */
  11251. void   SetMaximum(Environment *ev,
  11252.         SInt32 newMaximum)
  11253. {
  11254.    SOM_ResolveD(this,HIProgressIndicator,HIControl,SetMaximum)
  11255.     (this,ev,newMaximum);
  11256. }
  11257.  
  11258. /* method: GetMaximum */
  11259. SInt32   GetMaximum(Environment *ev)
  11260. {
  11261.    return SOM_ResolveD(this,HIProgressIndicator,HIControl,GetMaximum)
  11262.     (this,ev);
  11263. }
  11264.  
  11265. /* method: SimulateSelection */
  11266. void   SimulateSelection(Environment *ev)
  11267. {
  11268.    SOM_ResolveD(this,HIProgressIndicator,HIControl,SimulateSelection)
  11269.     (this,ev);
  11270. }
  11271.  
  11272. /* method: GetEmbeddingParent */
  11273. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  11274. {
  11275.    return SOM_ResolveD(this,HIProgressIndicator,HIPanel,GetEmbeddingParent)
  11276.     (this,ev);
  11277. }
  11278.  
  11279. /* method: InitPanel */
  11280. OSStatus   InitPanel(Environment *ev,
  11281.         RefLabel* identifier,
  11282.         HIWindow* window,
  11283.         Rect* bounds)
  11284. {
  11285.    return SOM_ResolveD(this,HIProgressIndicator,HIPanel,InitPanel)
  11286.     (this,ev,identifier,window,bounds);
  11287. }
  11288.  
  11289. /* method: RegisterInterestInAppleEvent */
  11290. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  11291.         AEHandlerTableRef table,
  11292.         AEEventClass eventClass,
  11293.         AEEventID eventID,
  11294.         HIEventRoutingType eventRouting)
  11295. {
  11296.    return SOM_ResolveD(this,HIProgressIndicator,HIPanel,RegisterInterestInAppleEvent)
  11297.     (this,ev,table,eventClass,eventID,eventRouting);
  11298. }
  11299.  
  11300. /* method: HasValidContent */
  11301. boolean   HasValidContent(Environment *ev)
  11302. {
  11303.    return SOM_ResolveD(this,HIProgressIndicator,HIPanel,HasValidContent)
  11304.     (this,ev);
  11305. }
  11306.  
  11307. /* method: GetDeepCollectionItemData */
  11308. OSStatus   GetDeepCollectionItemData(Environment *ev,
  11309.         CollectionTag tag,
  11310.         SInt32 id,
  11311.         ByteCount sizeAllowed,
  11312.         ByteCount* sizeReturned,
  11313.         void* itemData)
  11314. {
  11315.    return SOM_ResolveD(this,HIProgressIndicator,HIPanel,GetDeepCollectionItemData)
  11316.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  11317. }
  11318.  
  11319. /* method: GetWindow */
  11320. HIWindow*   GetWindow(Environment *ev)
  11321. {
  11322.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetWindow)
  11323.     (this,ev);
  11324. }
  11325.  
  11326. /* method: GetPort */
  11327. CGrafPtr   GetPort(Environment *ev)
  11328. {
  11329.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetPort)
  11330.     (this,ev);
  11331. }
  11332.  
  11333. /* method: GetRefLabel */
  11334. void   GetRefLabel(Environment *ev,
  11335.         RefLabel* identifier)
  11336. {
  11337.    SOM_ResolveD(this,HIProgressIndicator,HIObject,GetRefLabel)
  11338.     (this,ev,identifier);
  11339. }
  11340.  
  11341. /* method: GetCollection */
  11342. Collection   GetCollection(Environment *ev)
  11343. {
  11344.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetCollection)
  11345.     (this,ev);
  11346. }
  11347.  
  11348. /* method: Init */
  11349. OSStatus   Init(Environment *ev,
  11350.         RefLabel* identifier,
  11351.         Rect* boundingRect)
  11352. {
  11353.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,Init)
  11354.     (this,ev,identifier,boundingRect);
  11355. }
  11356.  
  11357. /* method: Terminate */
  11358. void   Terminate(Environment *ev)
  11359. {
  11360.    SOM_ResolveD(this,HIProgressIndicator,HIObject,Terminate)
  11361.     (this,ev);
  11362. }
  11363.  
  11364. /* method: Clone */
  11365. HIObject*   Clone(Environment *ev)
  11366. {
  11367.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,Clone)
  11368.     (this,ev);
  11369. }
  11370.  
  11371. /* method: Release */
  11372. void   Release(Environment *ev)
  11373. {
  11374.    SOM_ResolveD(this,HIProgressIndicator,HIObject,Release)
  11375.     (this,ev);
  11376. }
  11377.  
  11378. /* method: GetOwnerCount */
  11379. ItemCount   GetOwnerCount(Environment *ev)
  11380. {
  11381.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetOwnerCount)
  11382.     (this,ev);
  11383. }
  11384.  
  11385. /* method: InitFromAERecord */
  11386. OSStatus   InitFromAERecord(Environment *ev,
  11387.         AESubDesc* baseInitializerData,
  11388.         AESubDesc* initializerDataForClass,
  11389.         HIAERecordDataFormat dataFormat)
  11390. {
  11391.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,InitFromAERecord)
  11392.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  11393. }
  11394.  
  11395. /* method: WriteToAERecord */
  11396. OSStatus   WriteToAERecord(Environment *ev,
  11397.         AERecord* dataForSubclass,
  11398.         AERecord* objectData,
  11399.         HIAERecordDataFormat dataFormat)
  11400. {
  11401.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,WriteToAERecord)
  11402.     (this,ev,dataForSubclass,objectData,dataFormat);
  11403. }
  11404.  
  11405. /* method: CalculateOptimalSize */
  11406. void   CalculateOptimalSize(Environment *ev,
  11407.         SInt16* optimalWidth,
  11408.         SInt16* optimalHeight)
  11409. {
  11410.    SOM_ResolveD(this,HIProgressIndicator,HIObject,CalculateOptimalSize)
  11411.     (this,ev,optimalWidth,optimalHeight);
  11412. }
  11413.  
  11414. /* method: GetBoundingRect */
  11415. void   GetBoundingRect(Environment *ev,
  11416.         HICoordinateSystem coordinate,
  11417.         Rect* boundingRect)
  11418. {
  11419.    SOM_ResolveD(this,HIProgressIndicator,HIObject,GetBoundingRect)
  11420.     (this,ev,coordinate,boundingRect);
  11421. }
  11422.  
  11423. /* method: SetBoundingRect */
  11424. void   SetBoundingRect(Environment *ev,
  11425.         HICoordinateSystem coordinate,
  11426.         Rect* newBoundingRect)
  11427. {
  11428.    SOM_ResolveD(this,HIProgressIndicator,HIObject,SetBoundingRect)
  11429.     (this,ev,coordinate,newBoundingRect);
  11430. }
  11431.  
  11432. /* method: SetPosition */
  11433. void   SetPosition(Environment *ev,
  11434.         HICoordinateSystem coordinate,
  11435.         Point* newPosition)
  11436. {
  11437.    SOM_ResolveD(this,HIProgressIndicator,HIObject,SetPosition)
  11438.     (this,ev,coordinate,newPosition);
  11439. }
  11440.  
  11441. /* method: SetSize */
  11442. void   SetSize(Environment *ev,
  11443.         SInt16 width,
  11444.         SInt16 height)
  11445. {
  11446.    SOM_ResolveD(this,HIProgressIndicator,HIObject,SetSize)
  11447.     (this,ev,width,height);
  11448. }
  11449.  
  11450. /* method: GetUpdateRect */
  11451. void   GetUpdateRect(Environment *ev,
  11452.         HICoordinateSystem coordinate,
  11453.         Rect* updateRect)
  11454. {
  11455.    SOM_ResolveD(this,HIProgressIndicator,HIObject,GetUpdateRect)
  11456.     (this,ev,coordinate,updateRect);
  11457. }
  11458.  
  11459. /* method: Enable */
  11460. void   Enable(Environment *ev)
  11461. {
  11462.    SOM_ResolveD(this,HIProgressIndicator,HIObject,Enable)
  11463.     (this,ev);
  11464. }
  11465.  
  11466. /* method: Disable */
  11467. void   Disable(Environment *ev)
  11468. {
  11469.    SOM_ResolveD(this,HIProgressIndicator,HIObject,Disable)
  11470.     (this,ev);
  11471. }
  11472.  
  11473. /* method: IsEnabled */
  11474. boolean   IsEnabled(Environment *ev)
  11475. {
  11476.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,IsEnabled)
  11477.     (this,ev);
  11478. }
  11479.  
  11480. /* method: Show */
  11481. void   Show(Environment *ev)
  11482. {
  11483.    SOM_ResolveD(this,HIProgressIndicator,HIObject,Show)
  11484.     (this,ev);
  11485. }
  11486.  
  11487. /* method: Hide */
  11488. void   Hide(Environment *ev)
  11489. {
  11490.    SOM_ResolveD(this,HIProgressIndicator,HIObject,Hide)
  11491.     (this,ev);
  11492. }
  11493.  
  11494. /* method: IsVisible */
  11495. boolean   IsVisible(Environment *ev)
  11496. {
  11497.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,IsVisible)
  11498.     (this,ev);
  11499. }
  11500.  
  11501. /* method: HandleAppleEvent */
  11502. OSStatus   HandleAppleEvent(Environment *ev,
  11503.         AEEventClass eventClass,
  11504.         AEEventID eventID,
  11505.         AppleEvent* theEvent,
  11506.         AppleEvent* reply,
  11507.         AEHandlerTableRef handlerTableRef)
  11508. {
  11509.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,HandleAppleEvent)
  11510.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  11511. }
  11512.  
  11513. /* method: HandleActivate */
  11514. OSStatus   HandleActivate(Environment *ev,
  11515.         AppleEvent* theEvent,
  11516.         AppleEvent* reply,
  11517.         AEHandlerTableRef handlerTableRef)
  11518. {
  11519.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,HandleActivate)
  11520.     (this,ev,theEvent,reply,handlerTableRef);
  11521. }
  11522.  
  11523. /* method: HandleDeactivate */
  11524. OSStatus   HandleDeactivate(Environment *ev,
  11525.         AppleEvent* theEvent,
  11526.         AppleEvent* reply,
  11527.         AEHandlerTableRef handlerTableRef)
  11528. {
  11529.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,HandleDeactivate)
  11530.     (this,ev,theEvent,reply,handlerTableRef);
  11531. }
  11532.  
  11533. /* method: HandleNavigation */
  11534. OSStatus   HandleNavigation(Environment *ev,
  11535.         SInt8 key,
  11536.         SInt8 keyCode,
  11537.         EventModifiers modifiers,
  11538.         AppleEvent* theEvent,
  11539.         AppleEvent* reply,
  11540.         AEHandlerTableRef handlerTableRef)
  11541. {
  11542.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,HandleNavigation)
  11543.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  11544. }
  11545.  
  11546. /* method: HandleMouseDownInContent */
  11547. OSStatus   HandleMouseDownInContent(Environment *ev,
  11548.         Point* portLocalWhere,
  11549.         EventModifiers modifiers,
  11550.         AppleEvent* theEvent,
  11551.         AppleEvent* reply,
  11552.         AEHandlerTableRef handlerTableRef)
  11553. {
  11554.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,HandleMouseDownInContent)
  11555.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  11556. }
  11557.  
  11558. /* method: HandleMouseMovedInContent */
  11559. OSStatus   HandleMouseMovedInContent(Environment *ev,
  11560.         Point* portLocalWhere,
  11561.         EventModifiers modifiers,
  11562.         AppleEvent* theEvent,
  11563.         AppleEvent* reply,
  11564.         AEHandlerTableRef handlerTableRef)
  11565. {
  11566.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,HandleMouseMovedInContent)
  11567.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  11568. }
  11569.  
  11570. /* method: HandleMouseStoppedMovingInContent */
  11571. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  11572.         Point* portLocalWhere,
  11573.         EventModifiers modifiers,
  11574.         AppleEvent* theEvent,
  11575.         AppleEvent* reply,
  11576.         AEHandlerTableRef handlerTableRef)
  11577. {
  11578.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,HandleMouseStoppedMovingInContent)
  11579.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  11580. }
  11581.  
  11582. /* method: HandleMouseUpInContent */
  11583. OSStatus   HandleMouseUpInContent(Environment *ev,
  11584.         Point* portLocalWhere,
  11585.         EventModifiers modifiers,
  11586.         AppleEvent* theEvent,
  11587.         AppleEvent* reply,
  11588.         AEHandlerTableRef handlerTableRef)
  11589. {
  11590.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,HandleMouseUpInContent)
  11591.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  11592. }
  11593.  
  11594. /* method: TakeUserInputFocus */
  11595. void   TakeUserInputFocus(Environment *ev)
  11596. {
  11597.    SOM_ResolveD(this,HIProgressIndicator,HIObject,TakeUserInputFocus)
  11598.     (this,ev);
  11599. }
  11600.  
  11601. /* method: ReleaseUserInputFocus */
  11602. void   ReleaseUserInputFocus(Environment *ev)
  11603. {
  11604.    SOM_ResolveD(this,HIProgressIndicator,HIObject,ReleaseUserInputFocus)
  11605.     (this,ev);
  11606. }
  11607.  
  11608. /* method: HasUserInputFocus */
  11609. boolean   HasUserInputFocus(Environment *ev)
  11610. {
  11611.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,HasUserInputFocus)
  11612.     (this,ev);
  11613. }
  11614.  
  11615. /* method: CanReleaseUserInputFocus */
  11616. boolean   CanReleaseUserInputFocus(Environment *ev)
  11617. {
  11618.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,CanReleaseUserInputFocus)
  11619.     (this,ev);
  11620. }
  11621.  
  11622. /* method: SetUserInputFocusFlags */
  11623. void   SetUserInputFocusFlags(Environment *ev,
  11624.         HIUserInputFocusFlags flags)
  11625. {
  11626.    SOM_ResolveD(this,HIProgressIndicator,HIObject,SetUserInputFocusFlags)
  11627.     (this,ev,flags);
  11628. }
  11629.  
  11630. /* method: GetUserInputFocusFlags */
  11631. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  11632. {
  11633.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetUserInputFocusFlags)
  11634.     (this,ev);
  11635. }
  11636.  
  11637. /* method: SetTitle */
  11638. OSStatus   SetTitle(Environment *ev,
  11639.         ConstHIImageRef title,
  11640.         HIAdoptionFlags disposalAdoptionFlags)
  11641. {
  11642.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,SetTitle)
  11643.     (this,ev,title,disposalAdoptionFlags);
  11644. }
  11645.  
  11646. /* method: GetTitle */
  11647. OSStatus   GetTitle(Environment *ev,
  11648.         HIImageRef* title)
  11649. {
  11650.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetTitle)
  11651.     (this,ev,title);
  11652. }
  11653.  
  11654. /* method: Draw */
  11655. void   Draw(Environment *ev,
  11656.         CGrafPtr whichPort,
  11657.         RgnHandle drawRgn)
  11658. {
  11659.    SOM_ResolveD(this,HIProgressIndicator,HIObject,Draw)
  11660.     (this,ev,whichPort,drawRgn);
  11661. }
  11662.  
  11663. /* method: Erase */
  11664. void   Erase(Environment *ev,
  11665.         CGrafPtr whichPort,
  11666.         RgnHandle eraseRgn)
  11667. {
  11668.    SOM_ResolveD(this,HIProgressIndicator,HIObject,Erase)
  11669.     (this,ev,whichPort,eraseRgn);
  11670. }
  11671.  
  11672. /* method: Invalidate */
  11673. void   Invalidate(Environment *ev)
  11674. {
  11675.    SOM_ResolveD(this,HIProgressIndicator,HIObject,Invalidate)
  11676.     (this,ev);
  11677. }
  11678.  
  11679. /* method: GetDrawingMode */
  11680. HIDrawingMode   GetDrawingMode(Environment *ev)
  11681. {
  11682.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetDrawingMode)
  11683.     (this,ev);
  11684. }
  11685.  
  11686. /* method: SetDrawingMode */
  11687. void   SetDrawingMode(Environment *ev,
  11688.         HIDrawingMode drawingMode)
  11689. {
  11690.    SOM_ResolveD(this,HIProgressIndicator,HIObject,SetDrawingMode)
  11691.     (this,ev,drawingMode);
  11692. }
  11693.  
  11694. /* method: SetBackgroundPattern */
  11695. void   SetBackgroundPattern(Environment *ev,
  11696.         PixPatHandle backgroundPattern)
  11697. {
  11698.    SOM_ResolveD(this,HIProgressIndicator,HIObject,SetBackgroundPattern)
  11699.     (this,ev,backgroundPattern);
  11700. }
  11701.  
  11702. /* method: GetBackgroundPattern */
  11703. PixPatHandle   GetBackgroundPattern(Environment *ev)
  11704. {
  11705.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetBackgroundPattern)
  11706.     (this,ev);
  11707. }
  11708.  
  11709. /* method: Cut */
  11710. void   Cut(Environment *ev)
  11711. {
  11712.    SOM_ResolveD(this,HIProgressIndicator,HIObject,Cut)
  11713.     (this,ev);
  11714. }
  11715.  
  11716. /* method: Copy */
  11717. void   Copy(Environment *ev)
  11718. {
  11719.    SOM_ResolveD(this,HIProgressIndicator,HIObject,Copy)
  11720.     (this,ev);
  11721. }
  11722.  
  11723. /* method: Paste */
  11724. void   Paste(Environment *ev)
  11725. {
  11726.    SOM_ResolveD(this,HIProgressIndicator,HIObject,Paste)
  11727.     (this,ev);
  11728. }
  11729.  
  11730. /* method: Clear */
  11731. void   Clear(Environment *ev)
  11732. {
  11733.    SOM_ResolveD(this,HIProgressIndicator,HIObject,Clear)
  11734.     (this,ev);
  11735. }
  11736.  
  11737. /* method: GetClipboardSupportFlags */
  11738. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  11739. {
  11740.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,GetClipboardSupportFlags)
  11741.     (this,ev);
  11742. }
  11743.  
  11744. /* method: AddStateChangeCallback */
  11745. OSStatus   AddStateChangeCallback(Environment *ev,
  11746.         HIStateChangeCallbackProcPtr changedStateCallback,
  11747.         HIStateChangeCallbackRef* newCallbackRef)
  11748. {
  11749.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,AddStateChangeCallback)
  11750.     (this,ev,changedStateCallback,newCallbackRef);
  11751. }
  11752.  
  11753. /* method: RemoveStateChangeCallback */
  11754. OSStatus   RemoveStateChangeCallback(Environment *ev,
  11755.         HIStateChangeCallbackRef callbackRefToRemove)
  11756. {
  11757.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,RemoveStateChangeCallback)
  11758.     (this,ev,callbackRefToRemove);
  11759. }
  11760.  
  11761. /* noself procedure: GetHIObjectFromRefLabel */
  11762. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  11763.         RefLabel* identifier,
  11764.         ItemCount requestedObjects,
  11765.         ItemCount* totalObjects,
  11766.         HIObject** theObjects)
  11767. {
  11768. return ((somTD_HIProgressIndicator_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  11769.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  11770. }
  11771.  
  11772. /* noself procedure: GetNewHIObject */
  11773. static OSStatus   GetNewHIObject(Environment *ev,
  11774.         AESubDesc* objectInitializer,
  11775.         HIObject** newObject)
  11776. {
  11777. return ((somTD_HIProgressIndicator_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  11778.     (ev,objectInitializer,newObject);
  11779. }
  11780.  
  11781. /* noself procedure: GetNewHIObjectFromResource */
  11782. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  11783.         ResID objectInitializerResourceID,
  11784.         HIObject** newObject)
  11785. {
  11786. return ((somTD_HIProgressIndicator_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  11787.     (ev,objectInitializerResourceID,newObject);
  11788. }
  11789.  
  11790. /* method: DrawContent */
  11791. void   DrawContent(Environment *ev,
  11792.         CGrafPtr whichPort,
  11793.         RgnHandle drawRgn)
  11794. {
  11795.    SOM_ResolveD(this,HIProgressIndicator,HIObject,DrawContent)
  11796.     (this,ev,whichPort,drawRgn);
  11797. }
  11798.  
  11799. /* method: EraseContent */
  11800. void   EraseContent(Environment *ev,
  11801.         CGrafPtr whichPort,
  11802.         RgnHandle regionToErase)
  11803. {
  11804.    SOM_ResolveD(this,HIProgressIndicator,HIObject,EraseContent)
  11805.     (this,ev,whichPort,regionToErase);
  11806. }
  11807.  
  11808. /* method: TranslatePoint */
  11809. void   TranslatePoint(Environment *ev,
  11810.         HICoordinateSystem translateFrom,
  11811.         HICoordinateSystem translateTo,
  11812.         Point* sourcePoint,
  11813.         Point* translatedPoint)
  11814. {
  11815.    SOM_ResolveD(this,HIProgressIndicator,HIObject,TranslatePoint)
  11816.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  11817. }
  11818.  
  11819. /* method: TranslateRect */
  11820. void   TranslateRect(Environment *ev,
  11821.         HICoordinateSystem translateFrom,
  11822.         HICoordinateSystem translateTo,
  11823.         Rect* sourceRect,
  11824.         Rect* translatedRect)
  11825. {
  11826.    SOM_ResolveD(this,HIProgressIndicator,HIObject,TranslateRect)
  11827.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  11828. }
  11829.  
  11830. /* method: StateChanged */
  11831. void   StateChanged(Environment *ev,
  11832.         HIStateChangeCodeCreator selectorCreator,
  11833.         HIStateChangeCode changedCode)
  11834. {
  11835.    SOM_ResolveD(this,HIProgressIndicator,HIObject,StateChanged)
  11836.     (this,ev,selectorCreator,changedCode);
  11837. }
  11838.  
  11839. /* method: SetClipboardSupportFlags */
  11840. void   SetClipboardSupportFlags(Environment *ev,
  11841.         HIClipboardSupportFlags flags)
  11842. {
  11843.    SOM_ResolveD(this,HIProgressIndicator,HIObject,SetClipboardSupportFlags)
  11844.     (this,ev,flags);
  11845. }
  11846.  
  11847. /* method: Verify */
  11848. OSStatus   Verify(Environment *ev)
  11849. {
  11850.    return SOM_ResolveD(this,HIProgressIndicator,HIObject,Verify)
  11851.     (this,ev);
  11852. }
  11853.  
  11854. /* method: somInit */
  11855. void   somInit()
  11856. {
  11857.    SOM_ResolveD(this,HIProgressIndicator,SOMObject,somInit)
  11858.     (this);
  11859. }
  11860.  
  11861. /* method: somUninit */
  11862. void   somUninit()
  11863. {
  11864.    SOM_ResolveD(this,HIProgressIndicator,SOMObject,somUninit)
  11865.     (this);
  11866. }
  11867.  
  11868. /* method: somDuplicateReference */
  11869. SOMObject*   somDuplicateReference()
  11870. {
  11871.    return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somDuplicateReference)
  11872.     (this);
  11873. }
  11874.  
  11875. /* method: somCompareReference */
  11876. boolean   somCompareReference(SOMObject* anObject)
  11877. {
  11878.    return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somCompareReference)
  11879.     (this,anObject);
  11880. }
  11881.  
  11882. /* method: somRelease */
  11883. SOMObject*   somRelease()
  11884. {
  11885.    return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somRelease)
  11886.     (this);
  11887. }
  11888.  
  11889. /* method: somFree */
  11890. void   somFree()
  11891. {
  11892.    SOM_ResolveD(this,HIProgressIndicator,SOMObject,somFree)
  11893.     (this);
  11894. }
  11895.  
  11896. /* method: somCanDelete */
  11897. boolean   somCanDelete()
  11898. {
  11899.    return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somCanDelete)
  11900.     (this);
  11901. }
  11902.  
  11903. /* method: somGetClass */
  11904. SOMClass*   somGetClass()
  11905. {
  11906.    return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somGetClass)
  11907.     (this);
  11908. }
  11909.  
  11910. /* method: somGetClassName */
  11911. corbastring   somGetClassName()
  11912. {
  11913.    return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somGetClassName)
  11914.     (this);
  11915. }
  11916.  
  11917. /* method: somGetSize */
  11918. long   somGetSize()
  11919. {
  11920.    return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somGetSize)
  11921.     (this);
  11922. }
  11923.  
  11924. /* method: somIsA */
  11925. boolean   somIsA(SOMClass* aClassObj)
  11926. {
  11927.    return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somIsA)
  11928.     (this,aClassObj);
  11929. }
  11930.  
  11931. /* method: somRespondsTo */
  11932. boolean   somRespondsTo(somId mId)
  11933. {
  11934.    return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somRespondsTo)
  11935.     (this,mId);
  11936. }
  11937.  
  11938. /* method: somIsInstanceOf */
  11939. boolean   somIsInstanceOf(SOMClass* aClassObj)
  11940. {
  11941.    return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somIsInstanceOf)
  11942.     (this,aClassObj);
  11943. }
  11944.  
  11945. /* va_list method: somDispatch */
  11946. /* the va_list invocation form */
  11947. boolean   HIProgressIndicator_somDispatch(somToken* retValue,
  11948.         somId methodId,
  11949.         va_list ap)
  11950. {
  11951.    return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somDispatch)
  11952.     (this,retValue,methodId,ap);
  11953. }
  11954.  
  11955. /* the varargs invocation form */
  11956. boolean   somDispatch(somToken* retValue,
  11957.         somId methodId,
  11958.         ...)
  11959. {
  11960.    va_list ap;
  11961.    va_start(ap, methodId);
  11962.       boolean __somResult = 
  11963.       (boolean) SOM_ResolveD(this,HIProgressIndicator,SOMObject,somDispatch)
  11964.     (this,retValue,methodId,ap);
  11965.    va_end(ap);
  11966.    return __somResult;
  11967. }
  11968.  
  11969. /* va_list method: somClassDispatch */
  11970. /* the va_list invocation form */
  11971. boolean   HIProgressIndicator_somClassDispatch(SOMClass* clsObj,
  11972.         somToken* retValue,
  11973.         somId methodId,
  11974.         va_list ap)
  11975. {
  11976.    return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somClassDispatch)
  11977.     (this,clsObj,retValue,methodId,ap);
  11978. }
  11979.  
  11980. /* the varargs invocation form */
  11981. boolean   somClassDispatch(SOMClass* clsObj,
  11982.         somToken* retValue,
  11983.         somId methodId,
  11984.         ...)
  11985. {
  11986.    va_list ap;
  11987.    va_start(ap, methodId);
  11988.       boolean __somResult = 
  11989.       (boolean) SOM_ResolveD(this,HIProgressIndicator,SOMObject,somClassDispatch)
  11990.     (this,clsObj,retValue,methodId,ap);
  11991.    va_end(ap);
  11992.    return __somResult;
  11993. }
  11994.  
  11995. /* method: somCastObj */
  11996. boolean   somCastObj(SOMClass* cls)
  11997. {
  11998.    return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somCastObj)
  11999.     (this,cls);
  12000. }
  12001.  
  12002. /* method: somResetObj */
  12003. boolean   somResetObj()
  12004. {
  12005.    return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somResetObj)
  12006.     (this);
  12007. }
  12008.  
  12009. /* method: somPrintSelf */
  12010. SOMObject*   somPrintSelf()
  12011. {
  12012.    return SOM_ResolveD(this,HIProgressIndicator,SOMObject,somPrintSelf)
  12013.     (this);
  12014. }
  12015.  
  12016. /* method: somDumpSelf */
  12017. void   somDumpSelf(long level)
  12018. {
  12019.    SOM_ResolveD(this,HIProgressIndicator,SOMObject,somDumpSelf)
  12020.     (this,level);
  12021. }
  12022.  
  12023. /* method: somDumpSelfInt */
  12024. void   somDumpSelfInt(long level)
  12025. {
  12026.    SOM_ResolveD(this,HIProgressIndicator,SOMObject,somDumpSelfInt)
  12027.     (this,level);
  12028. }
  12029.  
  12030. };   /* HIProgressIndicator */
  12031.  
  12032.  
  12033.  
  12034. #endif       /* SOM_HIProgressIndicator_xh */
  12035.  
  12036. #ifndef SOM_HIPopUpControl_xh
  12037. #define SOM_HIPopUpControl_xh
  12038.  
  12039. class HIPopUpControl;
  12040.  
  12041. #define HIPopUpControl_MajorVersion 0
  12042. #define HIPopUpControl_MinorVersion 0
  12043.  
  12044. /* C++ SOM defs */
  12045. #include <somcls.xh>
  12046. #include <somcm.xh>
  12047.  
  12048. /* C++ parent defs */
  12049. #ifndef SOM_HIControl_xh
  12050. #include <HIControls.xh>
  12051. #endif
  12052.  
  12053. #ifndef HIPopUpControl_API
  12054. #define HIPopUpControl_API
  12055. /*
  12056.  * -- The Class API
  12057.  */
  12058.  
  12059. /*
  12060.  * Start of user-defined types:
  12061.  */
  12062.  
  12063. /*
  12064.  * End of user-defined types.
  12065.  */
  12066.  
  12067. #ifdef OLDIBMSOMAPISUPPORT
  12068. #define HIPopUpControlCClassData HIPopUpControlClassData
  12069. #define HIPopUpControlNewClass(major,minor) somNewVersionedClassReference(HIPopUpControl,major,minor)
  12070. #endif
  12071.  
  12072. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  12073. #define HIPopUpControlMetaClass SOMClass
  12074.  
  12075. #if PRAGMA_ALIGN_SUPPORTED
  12076. #  pragma options align=power
  12077. #endif
  12078.  
  12079. /* The API to the HIPopUpControl class object, and the methods it introduces. */
  12080. SOMEXTERN struct HIPopUpControlClassDataStructure {
  12081. #ifdef OLDIBMSOMAPISUPPORT
  12082.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  12083. #else
  12084.     long zero;
  12085. #endif
  12086.     somStaticClassInfo *sci;
  12087.     somDToken        instanceDataToken;
  12088.     long reserved [3];
  12089.     somMToken InitPopUpControl;
  12090.     somMToken SetMenu;
  12091.     somMToken GetMenu;
  12092. } SOMDLINK HIPopUpControlClassData;
  12093.  
  12094. #if PRAGMA_ALIGN_SUPPORTED
  12095. #  pragma options align=reset
  12096. #endif
  12097.  
  12098. #if !defined(HIPopUpControl_Class_Source) && !defined(SOM_Module_hicontrols_Source)
  12099. #if PRAGMA_IMPORT_SUPPORTED
  12100. #pragma import list HIPopUpControlClassData
  12101. #endif
  12102. #endif
  12103.  
  12104.  
  12105. /*
  12106.  * -- Typedefs for HIPopUpControl Method Procedures
  12107.  */
  12108. SOMEXTERN {
  12109. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_InitPopUpControl)(HIPopUpControl *somSelf, Environment *ev,
  12110.         RefLabel* identifier,
  12111.         HIWindow* window,
  12112.         Rect* bounds);
  12113. typedef void   (* SOMLINK somTD_HIPopUpControl_SetMenu)(HIPopUpControl *somSelf, Environment *ev,
  12114.         HIMenu* menu);
  12115. typedef HIMenu*   (* SOMLINK somTD_HIPopUpControl_GetMenu)(HIPopUpControl *somSelf, Environment *ev);
  12116.  
  12117. /*
  12118.  * -- Typedefs for Inherited Methods
  12119.  */
  12120. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_InitControl)(HIPopUpControl *somSelf, Environment *ev,
  12121.         RefLabel* identifier,
  12122.         HIWindow* window,
  12123.         Rect* bounds,
  12124.         SInt32 value,
  12125.         SInt32 minimumValue,
  12126.         SInt32 maximumValue);
  12127. typedef void   (* SOMLINK somTD_HIPopUpControl_SetValue)(HIPopUpControl *somSelf, Environment *ev,
  12128.         SInt32 newValue);
  12129. typedef SInt32   (* SOMLINK somTD_HIPopUpControl_GetValue)(HIPopUpControl *somSelf, Environment *ev);
  12130. typedef void   (* SOMLINK somTD_HIPopUpControl_SetMinimum)(HIPopUpControl *somSelf, Environment *ev,
  12131.         SInt32 newMinimum);
  12132. typedef SInt32   (* SOMLINK somTD_HIPopUpControl_GetMinimum)(HIPopUpControl *somSelf, Environment *ev);
  12133. typedef void   (* SOMLINK somTD_HIPopUpControl_SetMaximum)(HIPopUpControl *somSelf, Environment *ev,
  12134.         SInt32 newMaximum);
  12135. typedef SInt32   (* SOMLINK somTD_HIPopUpControl_GetMaximum)(HIPopUpControl *somSelf, Environment *ev);
  12136. typedef void   (* SOMLINK somTD_HIPopUpControl_SimulateSelection)(HIPopUpControl *somSelf, Environment *ev);
  12137. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIPopUpControl_GetEmbeddingParent)(HIPopUpControl *somSelf, Environment *ev);
  12138. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_InitPanel)(HIPopUpControl *somSelf, Environment *ev,
  12139.         RefLabel* identifier,
  12140.         HIWindow* window,
  12141.         Rect* bounds);
  12142. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_RegisterInterestInAppleEvent)(HIPopUpControl *somSelf, Environment *ev,
  12143.         AEHandlerTableRef table,
  12144.         AEEventClass eventClass,
  12145.         AEEventID eventID,
  12146.         HIEventRoutingType eventRouting);
  12147. typedef boolean   (* SOMLINK somTD_HIPopUpControl_HasValidContent)(HIPopUpControl *somSelf, Environment *ev);
  12148. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_GetDeepCollectionItemData)(HIPopUpControl *somSelf, Environment *ev,
  12149.         CollectionTag tag,
  12150.         SInt32 id,
  12151.         ByteCount sizeAllowed,
  12152.         ByteCount* sizeReturned,
  12153.         void* itemData);
  12154. typedef HIWindow*   (* SOMLINK somTD_HIPopUpControl_GetWindow)(HIPopUpControl *somSelf, Environment *ev);
  12155. typedef CGrafPtr   (* SOMLINK somTD_HIPopUpControl_GetPort)(HIPopUpControl *somSelf, Environment *ev);
  12156. typedef void   (* SOMLINK somTD_HIPopUpControl_GetRefLabel)(HIPopUpControl *somSelf, Environment *ev,
  12157.         RefLabel* identifier);
  12158. typedef Collection   (* SOMLINK somTD_HIPopUpControl_GetCollection)(HIPopUpControl *somSelf, Environment *ev);
  12159. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_Init)(HIPopUpControl *somSelf, Environment *ev,
  12160.         RefLabel* identifier,
  12161.         Rect* boundingRect);
  12162. typedef void   (* SOMLINK somTD_HIPopUpControl_Terminate)(HIPopUpControl *somSelf, Environment *ev);
  12163. typedef HIObject*   (* SOMLINK somTD_HIPopUpControl_Clone)(HIPopUpControl *somSelf, Environment *ev);
  12164. typedef void   (* SOMLINK somTD_HIPopUpControl_Release)(HIPopUpControl *somSelf, Environment *ev);
  12165. typedef ItemCount   (* SOMLINK somTD_HIPopUpControl_GetOwnerCount)(HIPopUpControl *somSelf, Environment *ev);
  12166. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_InitFromAERecord)(HIPopUpControl *somSelf, Environment *ev,
  12167.         AESubDesc* baseInitializerData,
  12168.         AESubDesc* initializerDataForClass,
  12169.         HIAERecordDataFormat dataFormat);
  12170. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_WriteToAERecord)(HIPopUpControl *somSelf, Environment *ev,
  12171.         AERecord* dataForSubclass,
  12172.         AERecord* objectData,
  12173.         HIAERecordDataFormat dataFormat);
  12174. typedef void   (* SOMLINK somTD_HIPopUpControl_CalculateOptimalSize)(HIPopUpControl *somSelf, Environment *ev,
  12175.         SInt16* optimalWidth,
  12176.         SInt16* optimalHeight);
  12177. typedef void   (* SOMLINK somTD_HIPopUpControl_GetBoundingRect)(HIPopUpControl *somSelf, Environment *ev,
  12178.         HICoordinateSystem coordinate,
  12179.         Rect* boundingRect);
  12180. typedef void   (* SOMLINK somTD_HIPopUpControl_SetBoundingRect)(HIPopUpControl *somSelf, Environment *ev,
  12181.         HICoordinateSystem coordinate,
  12182.         Rect* newBoundingRect);
  12183. typedef void   (* SOMLINK somTD_HIPopUpControl_SetPosition)(HIPopUpControl *somSelf, Environment *ev,
  12184.         HICoordinateSystem coordinate,
  12185.         Point* newPosition);
  12186. typedef void   (* SOMLINK somTD_HIPopUpControl_SetSize)(HIPopUpControl *somSelf, Environment *ev,
  12187.         SInt16 width,
  12188.         SInt16 height);
  12189. typedef void   (* SOMLINK somTD_HIPopUpControl_GetUpdateRect)(HIPopUpControl *somSelf, Environment *ev,
  12190.         HICoordinateSystem coordinate,
  12191.         Rect* updateRect);
  12192. typedef void   (* SOMLINK somTD_HIPopUpControl_Enable)(HIPopUpControl *somSelf, Environment *ev);
  12193. typedef void   (* SOMLINK somTD_HIPopUpControl_Disable)(HIPopUpControl *somSelf, Environment *ev);
  12194. typedef boolean   (* SOMLINK somTD_HIPopUpControl_IsEnabled)(HIPopUpControl *somSelf, Environment *ev);
  12195. typedef void   (* SOMLINK somTD_HIPopUpControl_Show)(HIPopUpControl *somSelf, Environment *ev);
  12196. typedef void   (* SOMLINK somTD_HIPopUpControl_Hide)(HIPopUpControl *somSelf, Environment *ev);
  12197. typedef boolean   (* SOMLINK somTD_HIPopUpControl_IsVisible)(HIPopUpControl *somSelf, Environment *ev);
  12198. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_HandleAppleEvent)(HIPopUpControl *somSelf, Environment *ev,
  12199.         AEEventClass eventClass,
  12200.         AEEventID eventID,
  12201.         AppleEvent* theEvent,
  12202.         AppleEvent* reply,
  12203.         AEHandlerTableRef handlerTableRef);
  12204. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_HandleActivate)(HIPopUpControl *somSelf, Environment *ev,
  12205.         AppleEvent* theEvent,
  12206.         AppleEvent* reply,
  12207.         AEHandlerTableRef handlerTableRef);
  12208. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_HandleDeactivate)(HIPopUpControl *somSelf, Environment *ev,
  12209.         AppleEvent* theEvent,
  12210.         AppleEvent* reply,
  12211.         AEHandlerTableRef handlerTableRef);
  12212. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_HandleNavigation)(HIPopUpControl *somSelf, Environment *ev,
  12213.         SInt8 key,
  12214.         SInt8 keyCode,
  12215.         EventModifiers modifiers,
  12216.         AppleEvent* theEvent,
  12217.         AppleEvent* reply,
  12218.         AEHandlerTableRef handlerTableRef);
  12219. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_HandleMouseDownInContent)(HIPopUpControl *somSelf, Environment *ev,
  12220.         Point* portLocalWhere,
  12221.         EventModifiers modifiers,
  12222.         AppleEvent* theEvent,
  12223.         AppleEvent* reply,
  12224.         AEHandlerTableRef handlerTableRef);
  12225. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_HandleMouseMovedInContent)(HIPopUpControl *somSelf, Environment *ev,
  12226.         Point* portLocalWhere,
  12227.         EventModifiers modifiers,
  12228.         AppleEvent* theEvent,
  12229.         AppleEvent* reply,
  12230.         AEHandlerTableRef handlerTableRef);
  12231. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_HandleMouseStoppedMovingInContent)(HIPopUpControl *somSelf, Environment *ev,
  12232.         Point* portLocalWhere,
  12233.         EventModifiers modifiers,
  12234.         AppleEvent* theEvent,
  12235.         AppleEvent* reply,
  12236.         AEHandlerTableRef handlerTableRef);
  12237. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_HandleMouseUpInContent)(HIPopUpControl *somSelf, Environment *ev,
  12238.         Point* portLocalWhere,
  12239.         EventModifiers modifiers,
  12240.         AppleEvent* theEvent,
  12241.         AppleEvent* reply,
  12242.         AEHandlerTableRef handlerTableRef);
  12243. typedef void   (* SOMLINK somTD_HIPopUpControl_TakeUserInputFocus)(HIPopUpControl *somSelf, Environment *ev);
  12244. typedef void   (* SOMLINK somTD_HIPopUpControl_ReleaseUserInputFocus)(HIPopUpControl *somSelf, Environment *ev);
  12245. typedef boolean   (* SOMLINK somTD_HIPopUpControl_HasUserInputFocus)(HIPopUpControl *somSelf, Environment *ev);
  12246. typedef boolean   (* SOMLINK somTD_HIPopUpControl_CanReleaseUserInputFocus)(HIPopUpControl *somSelf, Environment *ev);
  12247. typedef void   (* SOMLINK somTD_HIPopUpControl_SetUserInputFocusFlags)(HIPopUpControl *somSelf, Environment *ev,
  12248.         HIUserInputFocusFlags flags);
  12249. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIPopUpControl_GetUserInputFocusFlags)(HIPopUpControl *somSelf, Environment *ev);
  12250. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_SetTitle)(HIPopUpControl *somSelf, Environment *ev,
  12251.         ConstHIImageRef title,
  12252.         HIAdoptionFlags disposalAdoptionFlags);
  12253. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_GetTitle)(HIPopUpControl *somSelf, Environment *ev,
  12254.         HIImageRef* title);
  12255. typedef void   (* SOMLINK somTD_HIPopUpControl_Draw)(HIPopUpControl *somSelf, Environment *ev,
  12256.         CGrafPtr whichPort,
  12257.         RgnHandle drawRgn);
  12258. typedef void   (* SOMLINK somTD_HIPopUpControl_Erase)(HIPopUpControl *somSelf, Environment *ev,
  12259.         CGrafPtr whichPort,
  12260.         RgnHandle eraseRgn);
  12261. typedef void   (* SOMLINK somTD_HIPopUpControl_Invalidate)(HIPopUpControl *somSelf, Environment *ev);
  12262. typedef HIDrawingMode   (* SOMLINK somTD_HIPopUpControl_GetDrawingMode)(HIPopUpControl *somSelf, Environment *ev);
  12263. typedef void   (* SOMLINK somTD_HIPopUpControl_SetDrawingMode)(HIPopUpControl *somSelf, Environment *ev,
  12264.         HIDrawingMode drawingMode);
  12265. typedef void   (* SOMLINK somTD_HIPopUpControl_SetBackgroundPattern)(HIPopUpControl *somSelf, Environment *ev,
  12266.         PixPatHandle backgroundPattern);
  12267. typedef PixPatHandle   (* SOMLINK somTD_HIPopUpControl_GetBackgroundPattern)(HIPopUpControl *somSelf, Environment *ev);
  12268. typedef void   (* SOMLINK somTD_HIPopUpControl_Cut)(HIPopUpControl *somSelf, Environment *ev);
  12269. typedef void   (* SOMLINK somTD_HIPopUpControl_Copy)(HIPopUpControl *somSelf, Environment *ev);
  12270. typedef void   (* SOMLINK somTD_HIPopUpControl_Paste)(HIPopUpControl *somSelf, Environment *ev);
  12271. typedef void   (* SOMLINK somTD_HIPopUpControl_Clear)(HIPopUpControl *somSelf, Environment *ev);
  12272. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIPopUpControl_GetClipboardSupportFlags)(HIPopUpControl *somSelf, Environment *ev);
  12273. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_AddStateChangeCallback)(HIPopUpControl *somSelf, Environment *ev,
  12274.         HIStateChangeCallbackProcPtr changedStateCallback,
  12275.         HIStateChangeCallbackRef* newCallbackRef);
  12276. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_RemoveStateChangeCallback)(HIPopUpControl *somSelf, Environment *ev,
  12277.         HIStateChangeCallbackRef callbackRefToRemove);
  12278. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_GetHIObjectFromRefLabel)(Environment *ev,
  12279.         RefLabel* identifier,
  12280.         ItemCount requestedObjects,
  12281.         ItemCount* totalObjects,
  12282.         HIObject** theObjects);
  12283. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_GetNewHIObject)(Environment *ev,
  12284.         AESubDesc* objectInitializer,
  12285.         HIObject** newObject);
  12286. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_GetNewHIObjectFromResource)(Environment *ev,
  12287.         ResID objectInitializerResourceID,
  12288.         HIObject** newObject);
  12289. typedef void   (* SOMLINK somTD_HIPopUpControl_DrawContent)(HIPopUpControl *somSelf, Environment *ev,
  12290.         CGrafPtr whichPort,
  12291.         RgnHandle drawRgn);
  12292. typedef void   (* SOMLINK somTD_HIPopUpControl_EraseContent)(HIPopUpControl *somSelf, Environment *ev,
  12293.         CGrafPtr whichPort,
  12294.         RgnHandle regionToErase);
  12295. typedef void   (* SOMLINK somTD_HIPopUpControl_TranslatePoint)(HIPopUpControl *somSelf, Environment *ev,
  12296.         HICoordinateSystem translateFrom,
  12297.         HICoordinateSystem translateTo,
  12298.         Point* sourcePoint,
  12299.         Point* translatedPoint);
  12300. typedef void   (* SOMLINK somTD_HIPopUpControl_TranslateRect)(HIPopUpControl *somSelf, Environment *ev,
  12301.         HICoordinateSystem translateFrom,
  12302.         HICoordinateSystem translateTo,
  12303.         Rect* sourceRect,
  12304.         Rect* translatedRect);
  12305. typedef void   (* SOMLINK somTD_HIPopUpControl_StateChanged)(HIPopUpControl *somSelf, Environment *ev,
  12306.         HIStateChangeCodeCreator selectorCreator,
  12307.         HIStateChangeCode changedCode);
  12308. typedef void   (* SOMLINK somTD_HIPopUpControl_SetClipboardSupportFlags)(HIPopUpControl *somSelf, Environment *ev,
  12309.         HIClipboardSupportFlags flags);
  12310. typedef OSStatus   (* SOMLINK somTD_HIPopUpControl_Verify)(HIPopUpControl *somSelf, Environment *ev);
  12311. typedef void   (* SOMLINK somTD_HIPopUpControl_somInit)(HIPopUpControl *somSelf);
  12312. typedef void   (* SOMLINK somTD_HIPopUpControl_somUninit)(HIPopUpControl *somSelf);
  12313. typedef SOMObject*   (* SOMLINK somTD_HIPopUpControl_somDuplicateReference)(HIPopUpControl *somSelf);
  12314. typedef boolean   (* SOMLINK somTD_HIPopUpControl_somCompareReference)(HIPopUpControl *somSelf,
  12315.         SOMObject* anObject);
  12316. typedef SOMObject*   (* SOMLINK somTD_HIPopUpControl_somRelease)(HIPopUpControl *somSelf);
  12317. typedef void   (* SOMLINK somTD_HIPopUpControl_somFree)(HIPopUpControl *somSelf);
  12318. typedef boolean   (* SOMLINK somTD_HIPopUpControl_somCanDelete)(HIPopUpControl *somSelf);
  12319. typedef SOMClass*   (* SOMLINK somTD_HIPopUpControl_somGetClass)(HIPopUpControl *somSelf);
  12320. typedef corbastring   (* SOMLINK somTD_HIPopUpControl_somGetClassName)(HIPopUpControl *somSelf);
  12321. typedef long   (* SOMLINK somTD_HIPopUpControl_somGetSize)(HIPopUpControl *somSelf);
  12322. typedef boolean   (* SOMLINK somTD_HIPopUpControl_somIsA)(HIPopUpControl *somSelf,
  12323.         SOMClass* aClassObj);
  12324. typedef boolean   (* SOMLINK somTD_HIPopUpControl_somRespondsTo)(HIPopUpControl *somSelf,
  12325.         somId mId);
  12326. typedef boolean   (* SOMLINK somTD_HIPopUpControl_somIsInstanceOf)(HIPopUpControl *somSelf,
  12327.         SOMClass* aClassObj);
  12328. typedef boolean   (* SOMLINK somTD_HIPopUpControl_somDispatch)(HIPopUpControl *somSelf,
  12329.         somToken* retValue,
  12330.         somId methodId,
  12331.         va_list ap);
  12332. typedef boolean   (* SOMLINK somTD_HIPopUpControl_somClassDispatch)(HIPopUpControl *somSelf,
  12333.         SOMClass* clsObj,
  12334.         somToken* retValue,
  12335.         somId methodId,
  12336.         va_list ap);
  12337. typedef boolean   (* SOMLINK somTD_HIPopUpControl_somCastObj)(HIPopUpControl *somSelf,
  12338.         SOMClass* cls);
  12339. typedef boolean   (* SOMLINK somTD_HIPopUpControl_somResetObj)(HIPopUpControl *somSelf);
  12340. typedef SOMObject*   (* SOMLINK somTD_HIPopUpControl_somPrintSelf)(HIPopUpControl *somSelf);
  12341. typedef void   (* SOMLINK somTD_HIPopUpControl_somDumpSelf)(HIPopUpControl *somSelf,
  12342.         long level);
  12343. typedef void   (* SOMLINK somTD_HIPopUpControl_somDumpSelfInt)(HIPopUpControl *somSelf,
  12344.         long level);
  12345. }
  12346.  
  12347. #endif /* HIPopUpControl_API */
  12348.  
  12349.  
  12350. /*
  12351.  * -- This emitter treats Method Tokens as Thunks by default.
  12352.  * -- Use the sc modifier "nothunks" to change this default
  12353.  */
  12354. #undef somresolve_
  12355. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  12356.  
  12357. /*
  12358.  * -- The C++ Wrapper Class for HIPopUpControl
  12359.  */
  12360. class HIPopUpControl : public HIControl
  12361. {
  12362. public:
  12363.  
  12364. // HIPopUpControl::new registers use of the class object, and then uses somNew
  12365. // to allocate memory and load the object method table pointer. 
  12366. void *operator new(size_t size)
  12367. {
  12368.     SOM_IgnoreWarning(size);
  12369.     // Allocate memory using the default allocator for HIPopUpControl, and
  12370.     // clear mem & set method table pointer, call basic initialization
  12371.     return (void*) somNewObject(HIPopUpControl);
  12372. }
  12373.  
  12374. // HIPopUpControl::delete uses the default deallocator for the object's class.
  12375. void operator delete(void * obj)
  12376. {
  12377.     if (obj) {
  12378.         SOM_Resolve(obj,SOMObject,somFree)
  12379.            ( (SOMObject*) obj );
  12380.     }
  12381. }
  12382.  
  12383. /* method: InitPopUpControl */
  12384. OSStatus   InitPopUpControl(Environment *ev,
  12385.         RefLabel* identifier,
  12386.         HIWindow* window,
  12387.         Rect* bounds)
  12388. {
  12389.    return SOM_ResolveD(this,HIPopUpControl,HIPopUpControl,InitPopUpControl)
  12390.     (this,ev,identifier,window,bounds);
  12391. }
  12392.  
  12393. /* method: SetMenu */
  12394. void   SetMenu(Environment *ev,
  12395.         HIMenu* menu)
  12396. {
  12397.    SOM_ResolveD(this,HIPopUpControl,HIPopUpControl,SetMenu)
  12398.     (this,ev,menu);
  12399. }
  12400.  
  12401. /* method: GetMenu */
  12402. HIMenu*   GetMenu(Environment *ev)
  12403. {
  12404.    return SOM_ResolveD(this,HIPopUpControl,HIPopUpControl,GetMenu)
  12405.     (this,ev);
  12406. }
  12407.  
  12408.  
  12409. /*
  12410.  * -- Inherited methods
  12411.  */
  12412. /* method: InitControl */
  12413. OSStatus   InitControl(Environment *ev,
  12414.         RefLabel* identifier,
  12415.         HIWindow* window,
  12416.         Rect* bounds,
  12417.         SInt32 value,
  12418.         SInt32 minimumValue,
  12419.         SInt32 maximumValue)
  12420. {
  12421.    return SOM_ResolveD(this,HIPopUpControl,HIControl,InitControl)
  12422.     (this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
  12423. }
  12424.  
  12425. /* method: SetValue */
  12426. void   SetValue(Environment *ev,
  12427.         SInt32 newValue)
  12428. {
  12429.    SOM_ResolveD(this,HIPopUpControl,HIControl,SetValue)
  12430.     (this,ev,newValue);
  12431. }
  12432.  
  12433. /* method: GetValue */
  12434. SInt32   GetValue(Environment *ev)
  12435. {
  12436.    return SOM_ResolveD(this,HIPopUpControl,HIControl,GetValue)
  12437.     (this,ev);
  12438. }
  12439.  
  12440. /* method: SetMinimum */
  12441. void   SetMinimum(Environment *ev,
  12442.         SInt32 newMinimum)
  12443. {
  12444.    SOM_ResolveD(this,HIPopUpControl,HIControl,SetMinimum)
  12445.     (this,ev,newMinimum);
  12446. }
  12447.  
  12448. /* method: GetMinimum */
  12449. SInt32   GetMinimum(Environment *ev)
  12450. {
  12451.    return SOM_ResolveD(this,HIPopUpControl,HIControl,GetMinimum)
  12452.     (this,ev);
  12453. }
  12454.  
  12455. /* method: SetMaximum */
  12456. void   SetMaximum(Environment *ev,
  12457.         SInt32 newMaximum)
  12458. {
  12459.    SOM_ResolveD(this,HIPopUpControl,HIControl,SetMaximum)
  12460.     (this,ev,newMaximum);
  12461. }
  12462.  
  12463. /* method: GetMaximum */
  12464. SInt32   GetMaximum(Environment *ev)
  12465. {
  12466.    return SOM_ResolveD(this,HIPopUpControl,HIControl,GetMaximum)
  12467.     (this,ev);
  12468. }
  12469.  
  12470. /* method: SimulateSelection */
  12471. void   SimulateSelection(Environment *ev)
  12472. {
  12473.    SOM_ResolveD(this,HIPopUpControl,HIControl,SimulateSelection)
  12474.     (this,ev);
  12475. }
  12476.  
  12477. /* method: GetEmbeddingParent */
  12478. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  12479. {
  12480.    return SOM_ResolveD(this,HIPopUpControl,HIPanel,GetEmbeddingParent)
  12481.     (this,ev);
  12482. }
  12483.  
  12484. /* method: InitPanel */
  12485. OSStatus   InitPanel(Environment *ev,
  12486.         RefLabel* identifier,
  12487.         HIWindow* window,
  12488.         Rect* bounds)
  12489. {
  12490.    return SOM_ResolveD(this,HIPopUpControl,HIPanel,InitPanel)
  12491.     (this,ev,identifier,window,bounds);
  12492. }
  12493.  
  12494. /* method: RegisterInterestInAppleEvent */
  12495. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  12496.         AEHandlerTableRef table,
  12497.         AEEventClass eventClass,
  12498.         AEEventID eventID,
  12499.         HIEventRoutingType eventRouting)
  12500. {
  12501.    return SOM_ResolveD(this,HIPopUpControl,HIPanel,RegisterInterestInAppleEvent)
  12502.     (this,ev,table,eventClass,eventID,eventRouting);
  12503. }
  12504.  
  12505. /* method: HasValidContent */
  12506. boolean   HasValidContent(Environment *ev)
  12507. {
  12508.    return SOM_ResolveD(this,HIPopUpControl,HIPanel,HasValidContent)
  12509.     (this,ev);
  12510. }
  12511.  
  12512. /* method: GetDeepCollectionItemData */
  12513. OSStatus   GetDeepCollectionItemData(Environment *ev,
  12514.         CollectionTag tag,
  12515.         SInt32 id,
  12516.         ByteCount sizeAllowed,
  12517.         ByteCount* sizeReturned,
  12518.         void* itemData)
  12519. {
  12520.    return SOM_ResolveD(this,HIPopUpControl,HIPanel,GetDeepCollectionItemData)
  12521.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  12522. }
  12523.  
  12524. /* method: GetWindow */
  12525. HIWindow*   GetWindow(Environment *ev)
  12526. {
  12527.    return SOM_ResolveD(this,HIPopUpControl,HIObject,GetWindow)
  12528.     (this,ev);
  12529. }
  12530.  
  12531. /* method: GetPort */
  12532. CGrafPtr   GetPort(Environment *ev)
  12533. {
  12534.    return SOM_ResolveD(this,HIPopUpControl,HIObject,GetPort)
  12535.     (this,ev);
  12536. }
  12537.  
  12538. /* method: GetRefLabel */
  12539. void   GetRefLabel(Environment *ev,
  12540.         RefLabel* identifier)
  12541. {
  12542.    SOM_ResolveD(this,HIPopUpControl,HIObject,GetRefLabel)
  12543.     (this,ev,identifier);
  12544. }
  12545.  
  12546. /* method: GetCollection */
  12547. Collection   GetCollection(Environment *ev)
  12548. {
  12549.    return SOM_ResolveD(this,HIPopUpControl,HIObject,GetCollection)
  12550.     (this,ev);
  12551. }
  12552.  
  12553. /* method: Init */
  12554. OSStatus   Init(Environment *ev,
  12555.         RefLabel* identifier,
  12556.         Rect* boundingRect)
  12557. {
  12558.    return SOM_ResolveD(this,HIPopUpControl,HIObject,Init)
  12559.     (this,ev,identifier,boundingRect);
  12560. }
  12561.  
  12562. /* method: Terminate */
  12563. void   Terminate(Environment *ev)
  12564. {
  12565.    SOM_ResolveD(this,HIPopUpControl,HIObject,Terminate)
  12566.     (this,ev);
  12567. }
  12568.  
  12569. /* method: Clone */
  12570. HIObject*   Clone(Environment *ev)
  12571. {
  12572.    return SOM_ResolveD(this,HIPopUpControl,HIObject,Clone)
  12573.     (this,ev);
  12574. }
  12575.  
  12576. /* method: Release */
  12577. void   Release(Environment *ev)
  12578. {
  12579.    SOM_ResolveD(this,HIPopUpControl,HIObject,Release)
  12580.     (this,ev);
  12581. }
  12582.  
  12583. /* method: GetOwnerCount */
  12584. ItemCount   GetOwnerCount(Environment *ev)
  12585. {
  12586.    return SOM_ResolveD(this,HIPopUpControl,HIObject,GetOwnerCount)
  12587.     (this,ev);
  12588. }
  12589.  
  12590. /* method: InitFromAERecord */
  12591. OSStatus   InitFromAERecord(Environment *ev,
  12592.         AESubDesc* baseInitializerData,
  12593.         AESubDesc* initializerDataForClass,
  12594.         HIAERecordDataFormat dataFormat)
  12595. {
  12596.    return SOM_ResolveD(this,HIPopUpControl,HIObject,InitFromAERecord)
  12597.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  12598. }
  12599.  
  12600. /* method: WriteToAERecord */
  12601. OSStatus   WriteToAERecord(Environment *ev,
  12602.         AERecord* dataForSubclass,
  12603.         AERecord* objectData,
  12604.         HIAERecordDataFormat dataFormat)
  12605. {
  12606.    return SOM_ResolveD(this,HIPopUpControl,HIObject,WriteToAERecord)
  12607.     (this,ev,dataForSubclass,objectData,dataFormat);
  12608. }
  12609.  
  12610. /* method: CalculateOptimalSize */
  12611. void   CalculateOptimalSize(Environment *ev,
  12612.         SInt16* optimalWidth,
  12613.         SInt16* optimalHeight)
  12614. {
  12615.    SOM_ResolveD(this,HIPopUpControl,HIObject,CalculateOptimalSize)
  12616.     (this,ev,optimalWidth,optimalHeight);
  12617. }
  12618.  
  12619. /* method: GetBoundingRect */
  12620. void   GetBoundingRect(Environment *ev,
  12621.         HICoordinateSystem coordinate,
  12622.         Rect* boundingRect)
  12623. {
  12624.    SOM_ResolveD(this,HIPopUpControl,HIObject,GetBoundingRect)
  12625.     (this,ev,coordinate,boundingRect);
  12626. }
  12627.  
  12628. /* method: SetBoundingRect */
  12629. void   SetBoundingRect(Environment *ev,
  12630.         HICoordinateSystem coordinate,
  12631.         Rect* newBoundingRect)
  12632. {
  12633.    SOM_ResolveD(this,HIPopUpControl,HIObject,SetBoundingRect)
  12634.     (this,ev,coordinate,newBoundingRect);
  12635. }
  12636.  
  12637. /* method: SetPosition */
  12638. void   SetPosition(Environment *ev,
  12639.         HICoordinateSystem coordinate,
  12640.         Point* newPosition)
  12641. {
  12642.    SOM_ResolveD(this,HIPopUpControl,HIObject,SetPosition)
  12643.     (this,ev,coordinate,newPosition);
  12644. }
  12645.  
  12646. /* method: SetSize */
  12647. void   SetSize(Environment *ev,
  12648.         SInt16 width,
  12649.         SInt16 height)
  12650. {
  12651.    SOM_ResolveD(this,HIPopUpControl,HIObject,SetSize)
  12652.     (this,ev,width,height);
  12653. }
  12654.  
  12655. /* method: GetUpdateRect */
  12656. void   GetUpdateRect(Environment *ev,
  12657.         HICoordinateSystem coordinate,
  12658.         Rect* updateRect)
  12659. {
  12660.    SOM_ResolveD(this,HIPopUpControl,HIObject,GetUpdateRect)
  12661.     (this,ev,coordinate,updateRect);
  12662. }
  12663.  
  12664. /* method: Enable */
  12665. void   Enable(Environment *ev)
  12666. {
  12667.    SOM_ResolveD(this,HIPopUpControl,HIObject,Enable)
  12668.     (this,ev);
  12669. }
  12670.  
  12671. /* method: Disable */
  12672. void   Disable(Environment *ev)
  12673. {
  12674.    SOM_ResolveD(this,HIPopUpControl,HIObject,Disable)
  12675.     (this,ev);
  12676. }
  12677.  
  12678. /* method: IsEnabled */
  12679. boolean   IsEnabled(Environment *ev)
  12680. {
  12681.    return SOM_ResolveD(this,HIPopUpControl,HIObject,IsEnabled)
  12682.     (this,ev);
  12683. }
  12684.  
  12685. /* method: Show */
  12686. void   Show(Environment *ev)
  12687. {
  12688.    SOM_ResolveD(this,HIPopUpControl,HIObject,Show)
  12689.     (this,ev);
  12690. }
  12691.  
  12692. /* method: Hide */
  12693. void   Hide(Environment *ev)
  12694. {
  12695.    SOM_ResolveD(this,HIPopUpControl,HIObject,Hide)
  12696.     (this,ev);
  12697. }
  12698.  
  12699. /* method: IsVisible */
  12700. boolean   IsVisible(Environment *ev)
  12701. {
  12702.    return SOM_ResolveD(this,HIPopUpControl,HIObject,IsVisible)
  12703.     (this,ev);
  12704. }
  12705.  
  12706. /* method: HandleAppleEvent */
  12707. OSStatus   HandleAppleEvent(Environment *ev,
  12708.         AEEventClass eventClass,
  12709.         AEEventID eventID,
  12710.         AppleEvent* theEvent,
  12711.         AppleEvent* reply,
  12712.         AEHandlerTableRef handlerTableRef)
  12713. {
  12714.    return SOM_ResolveD(this,HIPopUpControl,HIObject,HandleAppleEvent)
  12715.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  12716. }
  12717.  
  12718. /* method: HandleActivate */
  12719. OSStatus   HandleActivate(Environment *ev,
  12720.         AppleEvent* theEvent,
  12721.         AppleEvent* reply,
  12722.         AEHandlerTableRef handlerTableRef)
  12723. {
  12724.    return SOM_ResolveD(this,HIPopUpControl,HIObject,HandleActivate)
  12725.     (this,ev,theEvent,reply,handlerTableRef);
  12726. }
  12727.  
  12728. /* method: HandleDeactivate */
  12729. OSStatus   HandleDeactivate(Environment *ev,
  12730.         AppleEvent* theEvent,
  12731.         AppleEvent* reply,
  12732.         AEHandlerTableRef handlerTableRef)
  12733. {
  12734.    return SOM_ResolveD(this,HIPopUpControl,HIObject,HandleDeactivate)
  12735.     (this,ev,theEvent,reply,handlerTableRef);
  12736. }
  12737.  
  12738. /* method: HandleNavigation */
  12739. OSStatus   HandleNavigation(Environment *ev,
  12740.         SInt8 key,
  12741.         SInt8 keyCode,
  12742.         EventModifiers modifiers,
  12743.         AppleEvent* theEvent,
  12744.         AppleEvent* reply,
  12745.         AEHandlerTableRef handlerTableRef)
  12746. {
  12747.    return SOM_ResolveD(this,HIPopUpControl,HIObject,HandleNavigation)
  12748.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  12749. }
  12750.  
  12751. /* method: HandleMouseDownInContent */
  12752. OSStatus   HandleMouseDownInContent(Environment *ev,
  12753.         Point* portLocalWhere,
  12754.         EventModifiers modifiers,
  12755.         AppleEvent* theEvent,
  12756.         AppleEvent* reply,
  12757.         AEHandlerTableRef handlerTableRef)
  12758. {
  12759.    return SOM_ResolveD(this,HIPopUpControl,HIObject,HandleMouseDownInContent)
  12760.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  12761. }
  12762.  
  12763. /* method: HandleMouseMovedInContent */
  12764. OSStatus   HandleMouseMovedInContent(Environment *ev,
  12765.         Point* portLocalWhere,
  12766.         EventModifiers modifiers,
  12767.         AppleEvent* theEvent,
  12768.         AppleEvent* reply,
  12769.         AEHandlerTableRef handlerTableRef)
  12770. {
  12771.    return SOM_ResolveD(this,HIPopUpControl,HIObject,HandleMouseMovedInContent)
  12772.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  12773. }
  12774.  
  12775. /* method: HandleMouseStoppedMovingInContent */
  12776. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  12777.         Point* portLocalWhere,
  12778.         EventModifiers modifiers,
  12779.         AppleEvent* theEvent,
  12780.         AppleEvent* reply,
  12781.         AEHandlerTableRef handlerTableRef)
  12782. {
  12783.    return SOM_ResolveD(this,HIPopUpControl,HIObject,HandleMouseStoppedMovingInContent)
  12784.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  12785. }
  12786.  
  12787. /* method: HandleMouseUpInContent */
  12788. OSStatus   HandleMouseUpInContent(Environment *ev,
  12789.         Point* portLocalWhere,
  12790.         EventModifiers modifiers,
  12791.         AppleEvent* theEvent,
  12792.         AppleEvent* reply,
  12793.         AEHandlerTableRef handlerTableRef)
  12794. {
  12795.    return SOM_ResolveD(this,HIPopUpControl,HIObject,HandleMouseUpInContent)
  12796.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  12797. }
  12798.  
  12799. /* method: TakeUserInputFocus */
  12800. void   TakeUserInputFocus(Environment *ev)
  12801. {
  12802.    SOM_ResolveD(this,HIPopUpControl,HIObject,TakeUserInputFocus)
  12803.     (this,ev);
  12804. }
  12805.  
  12806. /* method: ReleaseUserInputFocus */
  12807. void   ReleaseUserInputFocus(Environment *ev)
  12808. {
  12809.    SOM_ResolveD(this,HIPopUpControl,HIObject,ReleaseUserInputFocus)
  12810.     (this,ev);
  12811. }
  12812.  
  12813. /* method: HasUserInputFocus */
  12814. boolean   HasUserInputFocus(Environment *ev)
  12815. {
  12816.    return SOM_ResolveD(this,HIPopUpControl,HIObject,HasUserInputFocus)
  12817.     (this,ev);
  12818. }
  12819.  
  12820. /* method: CanReleaseUserInputFocus */
  12821. boolean   CanReleaseUserInputFocus(Environment *ev)
  12822. {
  12823.    return SOM_ResolveD(this,HIPopUpControl,HIObject,CanReleaseUserInputFocus)
  12824.     (this,ev);
  12825. }
  12826.  
  12827. /* method: SetUserInputFocusFlags */
  12828. void   SetUserInputFocusFlags(Environment *ev,
  12829.         HIUserInputFocusFlags flags)
  12830. {
  12831.    SOM_ResolveD(this,HIPopUpControl,HIObject,SetUserInputFocusFlags)
  12832.     (this,ev,flags);
  12833. }
  12834.  
  12835. /* method: GetUserInputFocusFlags */
  12836. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  12837. {
  12838.    return SOM_ResolveD(this,HIPopUpControl,HIObject,GetUserInputFocusFlags)
  12839.     (this,ev);
  12840. }
  12841.  
  12842. /* method: SetTitle */
  12843. OSStatus   SetTitle(Environment *ev,
  12844.         ConstHIImageRef title,
  12845.         HIAdoptionFlags disposalAdoptionFlags)
  12846. {
  12847.    return SOM_ResolveD(this,HIPopUpControl,HIObject,SetTitle)
  12848.     (this,ev,title,disposalAdoptionFlags);
  12849. }
  12850.  
  12851. /* method: GetTitle */
  12852. OSStatus   GetTitle(Environment *ev,
  12853.         HIImageRef* title)
  12854. {
  12855.    return SOM_ResolveD(this,HIPopUpControl,HIObject,GetTitle)
  12856.     (this,ev,title);
  12857. }
  12858.  
  12859. /* method: Draw */
  12860. void   Draw(Environment *ev,
  12861.         CGrafPtr whichPort,
  12862.         RgnHandle drawRgn)
  12863. {
  12864.    SOM_ResolveD(this,HIPopUpControl,HIObject,Draw)
  12865.     (this,ev,whichPort,drawRgn);
  12866. }
  12867.  
  12868. /* method: Erase */
  12869. void   Erase(Environment *ev,
  12870.         CGrafPtr whichPort,
  12871.         RgnHandle eraseRgn)
  12872. {
  12873.    SOM_ResolveD(this,HIPopUpControl,HIObject,Erase)
  12874.     (this,ev,whichPort,eraseRgn);
  12875. }
  12876.  
  12877. /* method: Invalidate */
  12878. void   Invalidate(Environment *ev)
  12879. {
  12880.    SOM_ResolveD(this,HIPopUpControl,HIObject,Invalidate)
  12881.     (this,ev);
  12882. }
  12883.  
  12884. /* method: GetDrawingMode */
  12885. HIDrawingMode   GetDrawingMode(Environment *ev)
  12886. {
  12887.    return SOM_ResolveD(this,HIPopUpControl,HIObject,GetDrawingMode)
  12888.     (this,ev);
  12889. }
  12890.  
  12891. /* method: SetDrawingMode */
  12892. void   SetDrawingMode(Environment *ev,
  12893.         HIDrawingMode drawingMode)
  12894. {
  12895.    SOM_ResolveD(this,HIPopUpControl,HIObject,SetDrawingMode)
  12896.     (this,ev,drawingMode);
  12897. }
  12898.  
  12899. /* method: SetBackgroundPattern */
  12900. void   SetBackgroundPattern(Environment *ev,
  12901.         PixPatHandle backgroundPattern)
  12902. {
  12903.    SOM_ResolveD(this,HIPopUpControl,HIObject,SetBackgroundPattern)
  12904.     (this,ev,backgroundPattern);
  12905. }
  12906.  
  12907. /* method: GetBackgroundPattern */
  12908. PixPatHandle   GetBackgroundPattern(Environment *ev)
  12909. {
  12910.    return SOM_ResolveD(this,HIPopUpControl,HIObject,GetBackgroundPattern)
  12911.     (this,ev);
  12912. }
  12913.  
  12914. /* method: Cut */
  12915. void   Cut(Environment *ev)
  12916. {
  12917.    SOM_ResolveD(this,HIPopUpControl,HIObject,Cut)
  12918.     (this,ev);
  12919. }
  12920.  
  12921. /* method: Copy */
  12922. void   Copy(Environment *ev)
  12923. {
  12924.    SOM_ResolveD(this,HIPopUpControl,HIObject,Copy)
  12925.     (this,ev);
  12926. }
  12927.  
  12928. /* method: Paste */
  12929. void   Paste(Environment *ev)
  12930. {
  12931.    SOM_ResolveD(this,HIPopUpControl,HIObject,Paste)
  12932.     (this,ev);
  12933. }
  12934.  
  12935. /* method: Clear */
  12936. void   Clear(Environment *ev)
  12937. {
  12938.    SOM_ResolveD(this,HIPopUpControl,HIObject,Clear)
  12939.     (this,ev);
  12940. }
  12941.  
  12942. /* method: GetClipboardSupportFlags */
  12943. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  12944. {
  12945.    return SOM_ResolveD(this,HIPopUpControl,HIObject,GetClipboardSupportFlags)
  12946.     (this,ev);
  12947. }
  12948.  
  12949. /* method: AddStateChangeCallback */
  12950. OSStatus   AddStateChangeCallback(Environment *ev,
  12951.         HIStateChangeCallbackProcPtr changedStateCallback,
  12952.         HIStateChangeCallbackRef* newCallbackRef)
  12953. {
  12954.    return SOM_ResolveD(this,HIPopUpControl,HIObject,AddStateChangeCallback)
  12955.     (this,ev,changedStateCallback,newCallbackRef);
  12956. }
  12957.  
  12958. /* method: RemoveStateChangeCallback */
  12959. OSStatus   RemoveStateChangeCallback(Environment *ev,
  12960.         HIStateChangeCallbackRef callbackRefToRemove)
  12961. {
  12962.    return SOM_ResolveD(this,HIPopUpControl,HIObject,RemoveStateChangeCallback)
  12963.     (this,ev,callbackRefToRemove);
  12964. }
  12965.  
  12966. /* noself procedure: GetHIObjectFromRefLabel */
  12967. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  12968.         RefLabel* identifier,
  12969.         ItemCount requestedObjects,
  12970.         ItemCount* totalObjects,
  12971.         HIObject** theObjects)
  12972. {
  12973. return ((somTD_HIPopUpControl_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  12974.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  12975. }
  12976.  
  12977. /* noself procedure: GetNewHIObject */
  12978. static OSStatus   GetNewHIObject(Environment *ev,
  12979.         AESubDesc* objectInitializer,
  12980.         HIObject** newObject)
  12981. {
  12982. return ((somTD_HIPopUpControl_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  12983.     (ev,objectInitializer,newObject);
  12984. }
  12985.  
  12986. /* noself procedure: GetNewHIObjectFromResource */
  12987. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  12988.         ResID objectInitializerResourceID,
  12989.         HIObject** newObject)
  12990. {
  12991. return ((somTD_HIPopUpControl_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  12992.     (ev,objectInitializerResourceID,newObject);
  12993. }
  12994.  
  12995. /* method: DrawContent */
  12996. void   DrawContent(Environment *ev,
  12997.         CGrafPtr whichPort,
  12998.         RgnHandle drawRgn)
  12999. {
  13000.    SOM_ResolveD(this,HIPopUpControl,HIObject,DrawContent)
  13001.     (this,ev,whichPort,drawRgn);
  13002. }
  13003.  
  13004. /* method: EraseContent */
  13005. void   EraseContent(Environment *ev,
  13006.         CGrafPtr whichPort,
  13007.         RgnHandle regionToErase)
  13008. {
  13009.    SOM_ResolveD(this,HIPopUpControl,HIObject,EraseContent)
  13010.     (this,ev,whichPort,regionToErase);
  13011. }
  13012.  
  13013. /* method: TranslatePoint */
  13014. void   TranslatePoint(Environment *ev,
  13015.         HICoordinateSystem translateFrom,
  13016.         HICoordinateSystem translateTo,
  13017.         Point* sourcePoint,
  13018.         Point* translatedPoint)
  13019. {
  13020.    SOM_ResolveD(this,HIPopUpControl,HIObject,TranslatePoint)
  13021.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  13022. }
  13023.  
  13024. /* method: TranslateRect */
  13025. void   TranslateRect(Environment *ev,
  13026.         HICoordinateSystem translateFrom,
  13027.         HICoordinateSystem translateTo,
  13028.         Rect* sourceRect,
  13029.         Rect* translatedRect)
  13030. {
  13031.    SOM_ResolveD(this,HIPopUpControl,HIObject,TranslateRect)
  13032.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  13033. }
  13034.  
  13035. /* method: StateChanged */
  13036. void   StateChanged(Environment *ev,
  13037.         HIStateChangeCodeCreator selectorCreator,
  13038.         HIStateChangeCode changedCode)
  13039. {
  13040.    SOM_ResolveD(this,HIPopUpControl,HIObject,StateChanged)
  13041.     (this,ev,selectorCreator,changedCode);
  13042. }
  13043.  
  13044. /* method: SetClipboardSupportFlags */
  13045. void   SetClipboardSupportFlags(Environment *ev,
  13046.         HIClipboardSupportFlags flags)
  13047. {
  13048.    SOM_ResolveD(this,HIPopUpControl,HIObject,SetClipboardSupportFlags)
  13049.     (this,ev,flags);
  13050. }
  13051.  
  13052. /* method: Verify */
  13053. OSStatus   Verify(Environment *ev)
  13054. {
  13055.    return SOM_ResolveD(this,HIPopUpControl,HIObject,Verify)
  13056.     (this,ev);
  13057. }
  13058.  
  13059. /* method: somInit */
  13060. void   somInit()
  13061. {
  13062.    SOM_ResolveD(this,HIPopUpControl,SOMObject,somInit)
  13063.     (this);
  13064. }
  13065.  
  13066. /* method: somUninit */
  13067. void   somUninit()
  13068. {
  13069.    SOM_ResolveD(this,HIPopUpControl,SOMObject,somUninit)
  13070.     (this);
  13071. }
  13072.  
  13073. /* method: somDuplicateReference */
  13074. SOMObject*   somDuplicateReference()
  13075. {
  13076.    return SOM_ResolveD(this,HIPopUpControl,SOMObject,somDuplicateReference)
  13077.     (this);
  13078. }
  13079.  
  13080. /* method: somCompareReference */
  13081. boolean   somCompareReference(SOMObject* anObject)
  13082. {
  13083.    return SOM_ResolveD(this,HIPopUpControl,SOMObject,somCompareReference)
  13084.     (this,anObject);
  13085. }
  13086.  
  13087. /* method: somRelease */
  13088. SOMObject*   somRelease()
  13089. {
  13090.    return SOM_ResolveD(this,HIPopUpControl,SOMObject,somRelease)
  13091.     (this);
  13092. }
  13093.  
  13094. /* method: somFree */
  13095. void   somFree()
  13096. {
  13097.    SOM_ResolveD(this,HIPopUpControl,SOMObject,somFree)
  13098.     (this);
  13099. }
  13100.  
  13101. /* method: somCanDelete */
  13102. boolean   somCanDelete()
  13103. {
  13104.    return SOM_ResolveD(this,HIPopUpControl,SOMObject,somCanDelete)
  13105.     (this);
  13106. }
  13107.  
  13108. /* method: somGetClass */
  13109. SOMClass*   somGetClass()
  13110. {
  13111.    return SOM_ResolveD(this,HIPopUpControl,SOMObject,somGetClass)
  13112.     (this);
  13113. }
  13114.  
  13115. /* method: somGetClassName */
  13116. corbastring   somGetClassName()
  13117. {
  13118.    return SOM_ResolveD(this,HIPopUpControl,SOMObject,somGetClassName)
  13119.     (this);
  13120. }
  13121.  
  13122. /* method: somGetSize */
  13123. long   somGetSize()
  13124. {
  13125.    return SOM_ResolveD(this,HIPopUpControl,SOMObject,somGetSize)
  13126.     (this);
  13127. }
  13128.  
  13129. /* method: somIsA */
  13130. boolean   somIsA(SOMClass* aClassObj)
  13131. {
  13132.    return SOM_ResolveD(this,HIPopUpControl,SOMObject,somIsA)
  13133.     (this,aClassObj);
  13134. }
  13135.  
  13136. /* method: somRespondsTo */
  13137. boolean   somRespondsTo(somId mId)
  13138. {
  13139.    return SOM_ResolveD(this,HIPopUpControl,SOMObject,somRespondsTo)
  13140.     (this,mId);
  13141. }
  13142.  
  13143. /* method: somIsInstanceOf */
  13144. boolean   somIsInstanceOf(SOMClass* aClassObj)
  13145. {
  13146.    return SOM_ResolveD(this,HIPopUpControl,SOMObject,somIsInstanceOf)
  13147.     (this,aClassObj);
  13148. }
  13149.  
  13150. /* va_list method: somDispatch */
  13151. /* the va_list invocation form */
  13152. boolean   HIPopUpControl_somDispatch(somToken* retValue,
  13153.         somId methodId,
  13154.         va_list ap)
  13155. {
  13156.    return SOM_ResolveD(this,HIPopUpControl,SOMObject,somDispatch)
  13157.     (this,retValue,methodId,ap);
  13158. }
  13159.  
  13160. /* the varargs invocation form */
  13161. boolean   somDispatch(somToken* retValue,
  13162.         somId methodId,
  13163.         ...)
  13164. {
  13165.    va_list ap;
  13166.    va_start(ap, methodId);
  13167.       boolean __somResult = 
  13168.       (boolean) SOM_ResolveD(this,HIPopUpControl,SOMObject,somDispatch)
  13169.     (this,retValue,methodId,ap);
  13170.    va_end(ap);
  13171.    return __somResult;
  13172. }
  13173.  
  13174. /* va_list method: somClassDispatch */
  13175. /* the va_list invocation form */
  13176. boolean   HIPopUpControl_somClassDispatch(SOMClass* clsObj,
  13177.         somToken* retValue,
  13178.         somId methodId,
  13179.         va_list ap)
  13180. {
  13181.    return SOM_ResolveD(this,HIPopUpControl,SOMObject,somClassDispatch)
  13182.     (this,clsObj,retValue,methodId,ap);
  13183. }
  13184.  
  13185. /* the varargs invocation form */
  13186. boolean   somClassDispatch(SOMClass* clsObj,
  13187.         somToken* retValue,
  13188.         somId methodId,
  13189.         ...)
  13190. {
  13191.    va_list ap;
  13192.    va_start(ap, methodId);
  13193.       boolean __somResult = 
  13194.       (boolean) SOM_ResolveD(this,HIPopUpControl,SOMObject,somClassDispatch)
  13195.     (this,clsObj,retValue,methodId,ap);
  13196.    va_end(ap);
  13197.    return __somResult;
  13198. }
  13199.  
  13200. /* method: somCastObj */
  13201. boolean   somCastObj(SOMClass* cls)
  13202. {
  13203.    return SOM_ResolveD(this,HIPopUpControl,SOMObject,somCastObj)
  13204.     (this,cls);
  13205. }
  13206.  
  13207. /* method: somResetObj */
  13208. boolean   somResetObj()
  13209. {
  13210.    return SOM_ResolveD(this,HIPopUpControl,SOMObject,somResetObj)
  13211.     (this);
  13212. }
  13213.  
  13214. /* method: somPrintSelf */
  13215. SOMObject*   somPrintSelf()
  13216. {
  13217.    return SOM_ResolveD(this,HIPopUpControl,SOMObject,somPrintSelf)
  13218.     (this);
  13219. }
  13220.  
  13221. /* method: somDumpSelf */
  13222. void   somDumpSelf(long level)
  13223. {
  13224.    SOM_ResolveD(this,HIPopUpControl,SOMObject,somDumpSelf)
  13225.     (this,level);
  13226. }
  13227.  
  13228. /* method: somDumpSelfInt */
  13229. void   somDumpSelfInt(long level)
  13230. {
  13231.    SOM_ResolveD(this,HIPopUpControl,SOMObject,somDumpSelfInt)
  13232.     (this,level);
  13233. }
  13234.  
  13235. };   /* HIPopUpControl */
  13236.  
  13237.  
  13238.  
  13239. #endif       /* SOM_HIPopUpControl_xh */
  13240.  
  13241. #ifndef SOM_HIPopUpButton_xh
  13242. #define SOM_HIPopUpButton_xh
  13243.  
  13244. class HIPopUpButton;
  13245.  
  13246. #define HIPopUpButton_MajorVersion 0
  13247. #define HIPopUpButton_MinorVersion 0
  13248.  
  13249. /* C++ SOM defs */
  13250. #include <somcls.xh>
  13251. #include <somcm.xh>
  13252.  
  13253. /* C++ parent defs */
  13254. #ifndef SOM_HIPopUpControl_xh
  13255. #include <HIControls.xh>
  13256. #endif
  13257.  
  13258. #ifndef HIPopUpButton_API
  13259. #define HIPopUpButton_API
  13260. /*
  13261.  * -- The Class API
  13262.  */
  13263.  
  13264. /*
  13265.  * Start of user-defined types:
  13266.  */
  13267.  
  13268. /*
  13269.  * End of user-defined types.
  13270.  */
  13271.  
  13272. #ifdef OLDIBMSOMAPISUPPORT
  13273. #define HIPopUpButtonCClassData HIPopUpButtonClassData
  13274. #define HIPopUpButtonNewClass(major,minor) somNewVersionedClassReference(HIPopUpButton,major,minor)
  13275. #endif
  13276.  
  13277. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  13278. #define HIPopUpButtonMetaClass SOMClass
  13279.  
  13280. #if PRAGMA_ALIGN_SUPPORTED
  13281. #  pragma options align=power
  13282. #endif
  13283.  
  13284. /* The API to the HIPopUpButton class object, and the methods it introduces. */
  13285. SOMEXTERN struct HIPopUpButtonClassDataStructure {
  13286. #ifdef OLDIBMSOMAPISUPPORT
  13287.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  13288. #else
  13289.     long zero;
  13290. #endif
  13291.     somStaticClassInfo *sci;
  13292.     somDToken        instanceDataToken;
  13293.     long reserved [3];
  13294.     somMToken InitPopUpButton;
  13295.     somMToken AutomaticallyCalculateTitleWidth;
  13296.     somMToken ManuallySetTitleWidth;
  13297.     somMToken IsTitleWidthAutomaticallyCalculated;
  13298.     somMToken SetTitleWidth;
  13299.     somMToken GetTitleWidth;
  13300. } SOMDLINK HIPopUpButtonClassData;
  13301.  
  13302. #if PRAGMA_ALIGN_SUPPORTED
  13303. #  pragma options align=reset
  13304. #endif
  13305.  
  13306. #if !defined(HIPopUpButton_Class_Source) && !defined(SOM_Module_hicontrols_Source)
  13307. #if PRAGMA_IMPORT_SUPPORTED
  13308. #pragma import list HIPopUpButtonClassData
  13309. #endif
  13310. #endif
  13311.  
  13312.  
  13313. /*
  13314.  * -- Typedefs for HIPopUpButton Method Procedures
  13315.  */
  13316. SOMEXTERN {
  13317. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_InitPopUpButton)(HIPopUpButton *somSelf, Environment *ev,
  13318.         RefLabel* identifier,
  13319.         HIWindow* window,
  13320.         Rect* bounds);
  13321. typedef void   (* SOMLINK somTD_HIPopUpButton_AutomaticallyCalculateTitleWidth)(HIPopUpButton *somSelf, Environment *ev);
  13322. typedef void   (* SOMLINK somTD_HIPopUpButton_ManuallySetTitleWidth)(HIPopUpButton *somSelf, Environment *ev);
  13323. typedef boolean   (* SOMLINK somTD_HIPopUpButton_IsTitleWidthAutomaticallyCalculated)(HIPopUpButton *somSelf, Environment *ev);
  13324. typedef void   (* SOMLINK somTD_HIPopUpButton_SetTitleWidth)(HIPopUpButton *somSelf, Environment *ev,
  13325.         UInt16 titleWidth);
  13326. typedef UInt16   (* SOMLINK somTD_HIPopUpButton_GetTitleWidth)(HIPopUpButton *somSelf, Environment *ev);
  13327.  
  13328. /*
  13329.  * -- Typedefs for Inherited Methods
  13330.  */
  13331. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_InitPopUpControl)(HIPopUpButton *somSelf, Environment *ev,
  13332.         RefLabel* identifier,
  13333.         HIWindow* window,
  13334.         Rect* bounds);
  13335. typedef void   (* SOMLINK somTD_HIPopUpButton_SetMenu)(HIPopUpButton *somSelf, Environment *ev,
  13336.         HIMenu* menu);
  13337. typedef HIMenu*   (* SOMLINK somTD_HIPopUpButton_GetMenu)(HIPopUpButton *somSelf, Environment *ev);
  13338. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_InitControl)(HIPopUpButton *somSelf, Environment *ev,
  13339.         RefLabel* identifier,
  13340.         HIWindow* window,
  13341.         Rect* bounds,
  13342.         SInt32 value,
  13343.         SInt32 minimumValue,
  13344.         SInt32 maximumValue);
  13345. typedef void   (* SOMLINK somTD_HIPopUpButton_SetValue)(HIPopUpButton *somSelf, Environment *ev,
  13346.         SInt32 newValue);
  13347. typedef SInt32   (* SOMLINK somTD_HIPopUpButton_GetValue)(HIPopUpButton *somSelf, Environment *ev);
  13348. typedef void   (* SOMLINK somTD_HIPopUpButton_SetMinimum)(HIPopUpButton *somSelf, Environment *ev,
  13349.         SInt32 newMinimum);
  13350. typedef SInt32   (* SOMLINK somTD_HIPopUpButton_GetMinimum)(HIPopUpButton *somSelf, Environment *ev);
  13351. typedef void   (* SOMLINK somTD_HIPopUpButton_SetMaximum)(HIPopUpButton *somSelf, Environment *ev,
  13352.         SInt32 newMaximum);
  13353. typedef SInt32   (* SOMLINK somTD_HIPopUpButton_GetMaximum)(HIPopUpButton *somSelf, Environment *ev);
  13354. typedef void   (* SOMLINK somTD_HIPopUpButton_SimulateSelection)(HIPopUpButton *somSelf, Environment *ev);
  13355. typedef HIEmbeddingPanel*   (* SOMLINK somTD_HIPopUpButton_GetEmbeddingParent)(HIPopUpButton *somSelf, Environment *ev);
  13356. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_InitPanel)(HIPopUpButton *somSelf, Environment *ev,
  13357.         RefLabel* identifier,
  13358.         HIWindow* window,
  13359.         Rect* bounds);
  13360. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_RegisterInterestInAppleEvent)(HIPopUpButton *somSelf, Environment *ev,
  13361.         AEHandlerTableRef table,
  13362.         AEEventClass eventClass,
  13363.         AEEventID eventID,
  13364.         HIEventRoutingType eventRouting);
  13365. typedef boolean   (* SOMLINK somTD_HIPopUpButton_HasValidContent)(HIPopUpButton *somSelf, Environment *ev);
  13366. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_GetDeepCollectionItemData)(HIPopUpButton *somSelf, Environment *ev,
  13367.         CollectionTag tag,
  13368.         SInt32 id,
  13369.         ByteCount sizeAllowed,
  13370.         ByteCount* sizeReturned,
  13371.         void* itemData);
  13372. typedef HIWindow*   (* SOMLINK somTD_HIPopUpButton_GetWindow)(HIPopUpButton *somSelf, Environment *ev);
  13373. typedef CGrafPtr   (* SOMLINK somTD_HIPopUpButton_GetPort)(HIPopUpButton *somSelf, Environment *ev);
  13374. typedef void   (* SOMLINK somTD_HIPopUpButton_GetRefLabel)(HIPopUpButton *somSelf, Environment *ev,
  13375.         RefLabel* identifier);
  13376. typedef Collection   (* SOMLINK somTD_HIPopUpButton_GetCollection)(HIPopUpButton *somSelf, Environment *ev);
  13377. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_Init)(HIPopUpButton *somSelf, Environment *ev,
  13378.         RefLabel* identifier,
  13379.         Rect* boundingRect);
  13380. typedef void   (* SOMLINK somTD_HIPopUpButton_Terminate)(HIPopUpButton *somSelf, Environment *ev);
  13381. typedef HIObject*   (* SOMLINK somTD_HIPopUpButton_Clone)(HIPopUpButton *somSelf, Environment *ev);
  13382. typedef void   (* SOMLINK somTD_HIPopUpButton_Release)(HIPopUpButton *somSelf, Environment *ev);
  13383. typedef ItemCount   (* SOMLINK somTD_HIPopUpButton_GetOwnerCount)(HIPopUpButton *somSelf, Environment *ev);
  13384. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_InitFromAERecord)(HIPopUpButton *somSelf, Environment *ev,
  13385.         AESubDesc* baseInitializerData,
  13386.         AESubDesc* initializerDataForClass,
  13387.         HIAERecordDataFormat dataFormat);
  13388. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_WriteToAERecord)(HIPopUpButton *somSelf, Environment *ev,
  13389.         AERecord* dataForSubclass,
  13390.         AERecord* objectData,
  13391.         HIAERecordDataFormat dataFormat);
  13392. typedef void   (* SOMLINK somTD_HIPopUpButton_CalculateOptimalSize)(HIPopUpButton *somSelf, Environment *ev,
  13393.         SInt16* optimalWidth,
  13394.         SInt16* optimalHeight);
  13395. typedef void   (* SOMLINK somTD_HIPopUpButton_GetBoundingRect)(HIPopUpButton *somSelf, Environment *ev,
  13396.         HICoordinateSystem coordinate,
  13397.         Rect* boundingRect);
  13398. typedef void   (* SOMLINK somTD_HIPopUpButton_SetBoundingRect)(HIPopUpButton *somSelf, Environment *ev,
  13399.         HICoordinateSystem coordinate,
  13400.         Rect* newBoundingRect);
  13401. typedef void   (* SOMLINK somTD_HIPopUpButton_SetPosition)(HIPopUpButton *somSelf, Environment *ev,
  13402.         HICoordinateSystem coordinate,
  13403.         Point* newPosition);
  13404. typedef void   (* SOMLINK somTD_HIPopUpButton_SetSize)(HIPopUpButton *somSelf, Environment *ev,
  13405.         SInt16 width,
  13406.         SInt16 height);
  13407. typedef void   (* SOMLINK somTD_HIPopUpButton_GetUpdateRect)(HIPopUpButton *somSelf, Environment *ev,
  13408.         HICoordinateSystem coordinate,
  13409.         Rect* updateRect);
  13410. typedef void   (* SOMLINK somTD_HIPopUpButton_Enable)(HIPopUpButton *somSelf, Environment *ev);
  13411. typedef void   (* SOMLINK somTD_HIPopUpButton_Disable)(HIPopUpButton *somSelf, Environment *ev);
  13412. typedef boolean   (* SOMLINK somTD_HIPopUpButton_IsEnabled)(HIPopUpButton *somSelf, Environment *ev);
  13413. typedef void   (* SOMLINK somTD_HIPopUpButton_Show)(HIPopUpButton *somSelf, Environment *ev);
  13414. typedef void   (* SOMLINK somTD_HIPopUpButton_Hide)(HIPopUpButton *somSelf, Environment *ev);
  13415. typedef boolean   (* SOMLINK somTD_HIPopUpButton_IsVisible)(HIPopUpButton *somSelf, Environment *ev);
  13416. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_HandleAppleEvent)(HIPopUpButton *somSelf, Environment *ev,
  13417.         AEEventClass eventClass,
  13418.         AEEventID eventID,
  13419.         AppleEvent* theEvent,
  13420.         AppleEvent* reply,
  13421.         AEHandlerTableRef handlerTableRef);
  13422. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_HandleActivate)(HIPopUpButton *somSelf, Environment *ev,
  13423.         AppleEvent* theEvent,
  13424.         AppleEvent* reply,
  13425.         AEHandlerTableRef handlerTableRef);
  13426. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_HandleDeactivate)(HIPopUpButton *somSelf, Environment *ev,
  13427.         AppleEvent* theEvent,
  13428.         AppleEvent* reply,
  13429.         AEHandlerTableRef handlerTableRef);
  13430. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_HandleNavigation)(HIPopUpButton *somSelf, Environment *ev,
  13431.         SInt8 key,
  13432.         SInt8 keyCode,
  13433.         EventModifiers modifiers,
  13434.         AppleEvent* theEvent,
  13435.         AppleEvent* reply,
  13436.         AEHandlerTableRef handlerTableRef);
  13437. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_HandleMouseDownInContent)(HIPopUpButton *somSelf, Environment *ev,
  13438.         Point* portLocalWhere,
  13439.         EventModifiers modifiers,
  13440.         AppleEvent* theEvent,
  13441.         AppleEvent* reply,
  13442.         AEHandlerTableRef handlerTableRef);
  13443. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_HandleMouseMovedInContent)(HIPopUpButton *somSelf, Environment *ev,
  13444.         Point* portLocalWhere,
  13445.         EventModifiers modifiers,
  13446.         AppleEvent* theEvent,
  13447.         AppleEvent* reply,
  13448.         AEHandlerTableRef handlerTableRef);
  13449. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_HandleMouseStoppedMovingInContent)(HIPopUpButton *somSelf, Environment *ev,
  13450.         Point* portLocalWhere,
  13451.         EventModifiers modifiers,
  13452.         AppleEvent* theEvent,
  13453.         AppleEvent* reply,
  13454.         AEHandlerTableRef handlerTableRef);
  13455. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_HandleMouseUpInContent)(HIPopUpButton *somSelf, Environment *ev,
  13456.         Point* portLocalWhere,
  13457.         EventModifiers modifiers,
  13458.         AppleEvent* theEvent,
  13459.         AppleEvent* reply,
  13460.         AEHandlerTableRef handlerTableRef);
  13461. typedef void   (* SOMLINK somTD_HIPopUpButton_TakeUserInputFocus)(HIPopUpButton *somSelf, Environment *ev);
  13462. typedef void   (* SOMLINK somTD_HIPopUpButton_ReleaseUserInputFocus)(HIPopUpButton *somSelf, Environment *ev);
  13463. typedef boolean   (* SOMLINK somTD_HIPopUpButton_HasUserInputFocus)(HIPopUpButton *somSelf, Environment *ev);
  13464. typedef boolean   (* SOMLINK somTD_HIPopUpButton_CanReleaseUserInputFocus)(HIPopUpButton *somSelf, Environment *ev);
  13465. typedef void   (* SOMLINK somTD_HIPopUpButton_SetUserInputFocusFlags)(HIPopUpButton *somSelf, Environment *ev,
  13466.         HIUserInputFocusFlags flags);
  13467. typedef HIUserInputFocusFlags   (* SOMLINK somTD_HIPopUpButton_GetUserInputFocusFlags)(HIPopUpButton *somSelf, Environment *ev);
  13468. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_SetTitle)(HIPopUpButton *somSelf, Environment *ev,
  13469.         ConstHIImageRef title,
  13470.         HIAdoptionFlags disposalAdoptionFlags);
  13471. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_GetTitle)(HIPopUpButton *somSelf, Environment *ev,
  13472.         HIImageRef* title);
  13473. typedef void   (* SOMLINK somTD_HIPopUpButton_Draw)(HIPopUpButton *somSelf, Environment *ev,
  13474.         CGrafPtr whichPort,
  13475.         RgnHandle drawRgn);
  13476. typedef void   (* SOMLINK somTD_HIPopUpButton_Erase)(HIPopUpButton *somSelf, Environment *ev,
  13477.         CGrafPtr whichPort,
  13478.         RgnHandle eraseRgn);
  13479. typedef void   (* SOMLINK somTD_HIPopUpButton_Invalidate)(HIPopUpButton *somSelf, Environment *ev);
  13480. typedef HIDrawingMode   (* SOMLINK somTD_HIPopUpButton_GetDrawingMode)(HIPopUpButton *somSelf, Environment *ev);
  13481. typedef void   (* SOMLINK somTD_HIPopUpButton_SetDrawingMode)(HIPopUpButton *somSelf, Environment *ev,
  13482.         HIDrawingMode drawingMode);
  13483. typedef void   (* SOMLINK somTD_HIPopUpButton_SetBackgroundPattern)(HIPopUpButton *somSelf, Environment *ev,
  13484.         PixPatHandle backgroundPattern);
  13485. typedef PixPatHandle   (* SOMLINK somTD_HIPopUpButton_GetBackgroundPattern)(HIPopUpButton *somSelf, Environment *ev);
  13486. typedef void   (* SOMLINK somTD_HIPopUpButton_Cut)(HIPopUpButton *somSelf, Environment *ev);
  13487. typedef void   (* SOMLINK somTD_HIPopUpButton_Copy)(HIPopUpButton *somSelf, Environment *ev);
  13488. typedef void   (* SOMLINK somTD_HIPopUpButton_Paste)(HIPopUpButton *somSelf, Environment *ev);
  13489. typedef void   (* SOMLINK somTD_HIPopUpButton_Clear)(HIPopUpButton *somSelf, Environment *ev);
  13490. typedef HIClipboardSupportFlags   (* SOMLINK somTD_HIPopUpButton_GetClipboardSupportFlags)(HIPopUpButton *somSelf, Environment *ev);
  13491. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_AddStateChangeCallback)(HIPopUpButton *somSelf, Environment *ev,
  13492.         HIStateChangeCallbackProcPtr changedStateCallback,
  13493.         HIStateChangeCallbackRef* newCallbackRef);
  13494. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_RemoveStateChangeCallback)(HIPopUpButton *somSelf, Environment *ev,
  13495.         HIStateChangeCallbackRef callbackRefToRemove);
  13496. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_GetHIObjectFromRefLabel)(Environment *ev,
  13497.         RefLabel* identifier,
  13498.         ItemCount requestedObjects,
  13499.         ItemCount* totalObjects,
  13500.         HIObject** theObjects);
  13501. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_GetNewHIObject)(Environment *ev,
  13502.         AESubDesc* objectInitializer,
  13503.         HIObject** newObject);
  13504. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_GetNewHIObjectFromResource)(Environment *ev,
  13505.         ResID objectInitializerResourceID,
  13506.         HIObject** newObject);
  13507. typedef void   (* SOMLINK somTD_HIPopUpButton_DrawContent)(HIPopUpButton *somSelf, Environment *ev,
  13508.         CGrafPtr whichPort,
  13509.         RgnHandle drawRgn);
  13510. typedef void   (* SOMLINK somTD_HIPopUpButton_EraseContent)(HIPopUpButton *somSelf, Environment *ev,
  13511.         CGrafPtr whichPort,
  13512.         RgnHandle regionToErase);
  13513. typedef void   (* SOMLINK somTD_HIPopUpButton_TranslatePoint)(HIPopUpButton *somSelf, Environment *ev,
  13514.         HICoordinateSystem translateFrom,
  13515.         HICoordinateSystem translateTo,
  13516.         Point* sourcePoint,
  13517.         Point* translatedPoint);
  13518. typedef void   (* SOMLINK somTD_HIPopUpButton_TranslateRect)(HIPopUpButton *somSelf, Environment *ev,
  13519.         HICoordinateSystem translateFrom,
  13520.         HICoordinateSystem translateTo,
  13521.         Rect* sourceRect,
  13522.         Rect* translatedRect);
  13523. typedef void   (* SOMLINK somTD_HIPopUpButton_StateChanged)(HIPopUpButton *somSelf, Environment *ev,
  13524.         HIStateChangeCodeCreator selectorCreator,
  13525.         HIStateChangeCode changedCode);
  13526. typedef void   (* SOMLINK somTD_HIPopUpButton_SetClipboardSupportFlags)(HIPopUpButton *somSelf, Environment *ev,
  13527.         HIClipboardSupportFlags flags);
  13528. typedef OSStatus   (* SOMLINK somTD_HIPopUpButton_Verify)(HIPopUpButton *somSelf, Environment *ev);
  13529. typedef void   (* SOMLINK somTD_HIPopUpButton_somInit)(HIPopUpButton *somSelf);
  13530. typedef void   (* SOMLINK somTD_HIPopUpButton_somUninit)(HIPopUpButton *somSelf);
  13531. typedef SOMObject*   (* SOMLINK somTD_HIPopUpButton_somDuplicateReference)(HIPopUpButton *somSelf);
  13532. typedef boolean   (* SOMLINK somTD_HIPopUpButton_somCompareReference)(HIPopUpButton *somSelf,
  13533.         SOMObject* anObject);
  13534. typedef SOMObject*   (* SOMLINK somTD_HIPopUpButton_somRelease)(HIPopUpButton *somSelf);
  13535. typedef void   (* SOMLINK somTD_HIPopUpButton_somFree)(HIPopUpButton *somSelf);
  13536. typedef boolean   (* SOMLINK somTD_HIPopUpButton_somCanDelete)(HIPopUpButton *somSelf);
  13537. typedef SOMClass*   (* SOMLINK somTD_HIPopUpButton_somGetClass)(HIPopUpButton *somSelf);
  13538. typedef corbastring   (* SOMLINK somTD_HIPopUpButton_somGetClassName)(HIPopUpButton *somSelf);
  13539. typedef long   (* SOMLINK somTD_HIPopUpButton_somGetSize)(HIPopUpButton *somSelf);
  13540. typedef boolean   (* SOMLINK somTD_HIPopUpButton_somIsA)(HIPopUpButton *somSelf,
  13541.         SOMClass* aClassObj);
  13542. typedef boolean   (* SOMLINK somTD_HIPopUpButton_somRespondsTo)(HIPopUpButton *somSelf,
  13543.         somId mId);
  13544. typedef boolean   (* SOMLINK somTD_HIPopUpButton_somIsInstanceOf)(HIPopUpButton *somSelf,
  13545.         SOMClass* aClassObj);
  13546. typedef boolean   (* SOMLINK somTD_HIPopUpButton_somDispatch)(HIPopUpButton *somSelf,
  13547.         somToken* retValue,
  13548.         somId methodId,
  13549.         va_list ap);
  13550. typedef boolean   (* SOMLINK somTD_HIPopUpButton_somClassDispatch)(HIPopUpButton *somSelf,
  13551.         SOMClass* clsObj,
  13552.         somToken* retValue,
  13553.         somId methodId,
  13554.         va_list ap);
  13555. typedef boolean   (* SOMLINK somTD_HIPopUpButton_somCastObj)(HIPopUpButton *somSelf,
  13556.         SOMClass* cls);
  13557. typedef boolean   (* SOMLINK somTD_HIPopUpButton_somResetObj)(HIPopUpButton *somSelf);
  13558. typedef SOMObject*   (* SOMLINK somTD_HIPopUpButton_somPrintSelf)(HIPopUpButton *somSelf);
  13559. typedef void   (* SOMLINK somTD_HIPopUpButton_somDumpSelf)(HIPopUpButton *somSelf,
  13560.         long level);
  13561. typedef void   (* SOMLINK somTD_HIPopUpButton_somDumpSelfInt)(HIPopUpButton *somSelf,
  13562.         long level);
  13563. }
  13564.  
  13565. #endif /* HIPopUpButton_API */
  13566.  
  13567.  
  13568. /*
  13569.  * -- This emitter treats Method Tokens as Thunks by default.
  13570.  * -- Use the sc modifier "nothunks" to change this default
  13571.  */
  13572. #undef somresolve_
  13573. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  13574.  
  13575. /*
  13576.  * -- The C++ Wrapper Class for HIPopUpButton
  13577.  */
  13578. class HIPopUpButton : public HIPopUpControl
  13579. {
  13580. public:
  13581.  
  13582. // HIPopUpButton::new registers use of the class object, and then uses somNew
  13583. // to allocate memory and load the object method table pointer. 
  13584. void *operator new(size_t size)
  13585. {
  13586.     SOM_IgnoreWarning(size);
  13587.     // Allocate memory using the default allocator for HIPopUpButton, and
  13588.     // clear mem & set method table pointer, call basic initialization
  13589.     return (void*) somNewObject(HIPopUpButton);
  13590. }
  13591.  
  13592. // HIPopUpButton::delete uses the default deallocator for the object's class.
  13593. void operator delete(void * obj)
  13594. {
  13595.     if (obj) {
  13596.         SOM_Resolve(obj,SOMObject,somFree)
  13597.            ( (SOMObject*) obj );
  13598.     }
  13599. }
  13600.  
  13601. /* method: InitPopUpButton */
  13602. OSStatus   InitPopUpButton(Environment *ev,
  13603.         RefLabel* identifier,
  13604.         HIWindow* window,
  13605.         Rect* bounds)
  13606. {
  13607.    return SOM_ResolveD(this,HIPopUpButton,HIPopUpButton,InitPopUpButton)
  13608.     (this,ev,identifier,window,bounds);
  13609. }
  13610.  
  13611. /* method: AutomaticallyCalculateTitleWidth */
  13612. void   AutomaticallyCalculateTitleWidth(Environment *ev)
  13613. {
  13614.    SOM_ResolveD(this,HIPopUpButton,HIPopUpButton,AutomaticallyCalculateTitleWidth)
  13615.     (this,ev);
  13616. }
  13617.  
  13618. /* method: ManuallySetTitleWidth */
  13619. void   ManuallySetTitleWidth(Environment *ev)
  13620. {
  13621.    SOM_ResolveD(this,HIPopUpButton,HIPopUpButton,ManuallySetTitleWidth)
  13622.     (this,ev);
  13623. }
  13624.  
  13625. /* method: IsTitleWidthAutomaticallyCalculated */
  13626. boolean   IsTitleWidthAutomaticallyCalculated(Environment *ev)
  13627. {
  13628.    return SOM_ResolveD(this,HIPopUpButton,HIPopUpButton,IsTitleWidthAutomaticallyCalculated)
  13629.     (this,ev);
  13630. }
  13631.  
  13632. /* method: SetTitleWidth */
  13633. void   SetTitleWidth(Environment *ev,
  13634.         UInt16 titleWidth)
  13635. {
  13636.    SOM_ResolveD(this,HIPopUpButton,HIPopUpButton,SetTitleWidth)
  13637.     (this,ev,titleWidth);
  13638. }
  13639.  
  13640. /* method: GetTitleWidth */
  13641. UInt16   GetTitleWidth(Environment *ev)
  13642. {
  13643.    return SOM_ResolveD(this,HIPopUpButton,HIPopUpButton,GetTitleWidth)
  13644.     (this,ev);
  13645. }
  13646.  
  13647.  
  13648. /*
  13649.  * -- Inherited methods
  13650.  */
  13651. /* method: InitPopUpControl */
  13652. OSStatus   InitPopUpControl(Environment *ev,
  13653.         RefLabel* identifier,
  13654.         HIWindow* window,
  13655.         Rect* bounds)
  13656. {
  13657.    return SOM_ResolveD(this,HIPopUpButton,HIPopUpControl,InitPopUpControl)
  13658.     (this,ev,identifier,window,bounds);
  13659. }
  13660.  
  13661. /* method: SetMenu */
  13662. void   SetMenu(Environment *ev,
  13663.         HIMenu* menu)
  13664. {
  13665.    SOM_ResolveD(this,HIPopUpButton,HIPopUpControl,SetMenu)
  13666.     (this,ev,menu);
  13667. }
  13668.  
  13669. /* method: GetMenu */
  13670. HIMenu*   GetMenu(Environment *ev)
  13671. {
  13672.    return SOM_ResolveD(this,HIPopUpButton,HIPopUpControl,GetMenu)
  13673.     (this,ev);
  13674. }
  13675.  
  13676. /* method: InitControl */
  13677. OSStatus   InitControl(Environment *ev,
  13678.         RefLabel* identifier,
  13679.         HIWindow* window,
  13680.         Rect* bounds,
  13681.         SInt32 value,
  13682.         SInt32 minimumValue,
  13683.         SInt32 maximumValue)
  13684. {
  13685.    return SOM_ResolveD(this,HIPopUpButton,HIControl,InitControl)
  13686.     (this,ev,identifier,window,bounds,value,minimumValue,maximumValue);
  13687. }
  13688.  
  13689. /* method: SetValue */
  13690. void   SetValue(Environment *ev,
  13691.         SInt32 newValue)
  13692. {
  13693.    SOM_ResolveD(this,HIPopUpButton,HIControl,SetValue)
  13694.     (this,ev,newValue);
  13695. }
  13696.  
  13697. /* method: GetValue */
  13698. SInt32   GetValue(Environment *ev)
  13699. {
  13700.    return SOM_ResolveD(this,HIPopUpButton,HIControl,GetValue)
  13701.     (this,ev);
  13702. }
  13703.  
  13704. /* method: SetMinimum */
  13705. void   SetMinimum(Environment *ev,
  13706.         SInt32 newMinimum)
  13707. {
  13708.    SOM_ResolveD(this,HIPopUpButton,HIControl,SetMinimum)
  13709.     (this,ev,newMinimum);
  13710. }
  13711.  
  13712. /* method: GetMinimum */
  13713. SInt32   GetMinimum(Environment *ev)
  13714. {
  13715.    return SOM_ResolveD(this,HIPopUpButton,HIControl,GetMinimum)
  13716.     (this,ev);
  13717. }
  13718.  
  13719. /* method: SetMaximum */
  13720. void   SetMaximum(Environment *ev,
  13721.         SInt32 newMaximum)
  13722. {
  13723.    SOM_ResolveD(this,HIPopUpButton,HIControl,SetMaximum)
  13724.     (this,ev,newMaximum);
  13725. }
  13726.  
  13727. /* method: GetMaximum */
  13728. SInt32   GetMaximum(Environment *ev)
  13729. {
  13730.    return SOM_ResolveD(this,HIPopUpButton,HIControl,GetMaximum)
  13731.     (this,ev);
  13732. }
  13733.  
  13734. /* method: SimulateSelection */
  13735. void   SimulateSelection(Environment *ev)
  13736. {
  13737.    SOM_ResolveD(this,HIPopUpButton,HIControl,SimulateSelection)
  13738.     (this,ev);
  13739. }
  13740.  
  13741. /* method: GetEmbeddingParent */
  13742. HIEmbeddingPanel*   GetEmbeddingParent(Environment *ev)
  13743. {
  13744.    return SOM_ResolveD(this,HIPopUpButton,HIPanel,GetEmbeddingParent)
  13745.     (this,ev);
  13746. }
  13747.  
  13748. /* method: InitPanel */
  13749. OSStatus   InitPanel(Environment *ev,
  13750.         RefLabel* identifier,
  13751.         HIWindow* window,
  13752.         Rect* bounds)
  13753. {
  13754.    return SOM_ResolveD(this,HIPopUpButton,HIPanel,InitPanel)
  13755.     (this,ev,identifier,window,bounds);
  13756. }
  13757.  
  13758. /* method: RegisterInterestInAppleEvent */
  13759. OSStatus   RegisterInterestInAppleEvent(Environment *ev,
  13760.         AEHandlerTableRef table,
  13761.         AEEventClass eventClass,
  13762.         AEEventID eventID,
  13763.         HIEventRoutingType eventRouting)
  13764. {
  13765.    return SOM_ResolveD(this,HIPopUpButton,HIPanel,RegisterInterestInAppleEvent)
  13766.     (this,ev,table,eventClass,eventID,eventRouting);
  13767. }
  13768.  
  13769. /* method: HasValidContent */
  13770. boolean   HasValidContent(Environment *ev)
  13771. {
  13772.    return SOM_ResolveD(this,HIPopUpButton,HIPanel,HasValidContent)
  13773.     (this,ev);
  13774. }
  13775.  
  13776. /* method: GetDeepCollectionItemData */
  13777. OSStatus   GetDeepCollectionItemData(Environment *ev,
  13778.         CollectionTag tag,
  13779.         SInt32 id,
  13780.         ByteCount sizeAllowed,
  13781.         ByteCount* sizeReturned,
  13782.         void* itemData)
  13783. {
  13784.    return SOM_ResolveD(this,HIPopUpButton,HIPanel,GetDeepCollectionItemData)
  13785.     (this,ev,tag,id,sizeAllowed,sizeReturned,itemData);
  13786. }
  13787.  
  13788. /* method: GetWindow */
  13789. HIWindow*   GetWindow(Environment *ev)
  13790. {
  13791.    return SOM_ResolveD(this,HIPopUpButton,HIObject,GetWindow)
  13792.     (this,ev);
  13793. }
  13794.  
  13795. /* method: GetPort */
  13796. CGrafPtr   GetPort(Environment *ev)
  13797. {
  13798.    return SOM_ResolveD(this,HIPopUpButton,HIObject,GetPort)
  13799.     (this,ev);
  13800. }
  13801.  
  13802. /* method: GetRefLabel */
  13803. void   GetRefLabel(Environment *ev,
  13804.         RefLabel* identifier)
  13805. {
  13806.    SOM_ResolveD(this,HIPopUpButton,HIObject,GetRefLabel)
  13807.     (this,ev,identifier);
  13808. }
  13809.  
  13810. /* method: GetCollection */
  13811. Collection   GetCollection(Environment *ev)
  13812. {
  13813.    return SOM_ResolveD(this,HIPopUpButton,HIObject,GetCollection)
  13814.     (this,ev);
  13815. }
  13816.  
  13817. /* method: Init */
  13818. OSStatus   Init(Environment *ev,
  13819.         RefLabel* identifier,
  13820.         Rect* boundingRect)
  13821. {
  13822.    return SOM_ResolveD(this,HIPopUpButton,HIObject,Init)
  13823.     (this,ev,identifier,boundingRect);
  13824. }
  13825.  
  13826. /* method: Terminate */
  13827. void   Terminate(Environment *ev)
  13828. {
  13829.    SOM_ResolveD(this,HIPopUpButton,HIObject,Terminate)
  13830.     (this,ev);
  13831. }
  13832.  
  13833. /* method: Clone */
  13834. HIObject*   Clone(Environment *ev)
  13835. {
  13836.    return SOM_ResolveD(this,HIPopUpButton,HIObject,Clone)
  13837.     (this,ev);
  13838. }
  13839.  
  13840. /* method: Release */
  13841. void   Release(Environment *ev)
  13842. {
  13843.    SOM_ResolveD(this,HIPopUpButton,HIObject,Release)
  13844.     (this,ev);
  13845. }
  13846.  
  13847. /* method: GetOwnerCount */
  13848. ItemCount   GetOwnerCount(Environment *ev)
  13849. {
  13850.    return SOM_ResolveD(this,HIPopUpButton,HIObject,GetOwnerCount)
  13851.     (this,ev);
  13852. }
  13853.  
  13854. /* method: InitFromAERecord */
  13855. OSStatus   InitFromAERecord(Environment *ev,
  13856.         AESubDesc* baseInitializerData,
  13857.         AESubDesc* initializerDataForClass,
  13858.         HIAERecordDataFormat dataFormat)
  13859. {
  13860.    return SOM_ResolveD(this,HIPopUpButton,HIObject,InitFromAERecord)
  13861.     (this,ev,baseInitializerData,initializerDataForClass,dataFormat);
  13862. }
  13863.  
  13864. /* method: WriteToAERecord */
  13865. OSStatus   WriteToAERecord(Environment *ev,
  13866.         AERecord* dataForSubclass,
  13867.         AERecord* objectData,
  13868.         HIAERecordDataFormat dataFormat)
  13869. {
  13870.    return SOM_ResolveD(this,HIPopUpButton,HIObject,WriteToAERecord)
  13871.     (this,ev,dataForSubclass,objectData,dataFormat);
  13872. }
  13873.  
  13874. /* method: CalculateOptimalSize */
  13875. void   CalculateOptimalSize(Environment *ev,
  13876.         SInt16* optimalWidth,
  13877.         SInt16* optimalHeight)
  13878. {
  13879.    SOM_ResolveD(this,HIPopUpButton,HIObject,CalculateOptimalSize)
  13880.     (this,ev,optimalWidth,optimalHeight);
  13881. }
  13882.  
  13883. /* method: GetBoundingRect */
  13884. void   GetBoundingRect(Environment *ev,
  13885.         HICoordinateSystem coordinate,
  13886.         Rect* boundingRect)
  13887. {
  13888.    SOM_ResolveD(this,HIPopUpButton,HIObject,GetBoundingRect)
  13889.     (this,ev,coordinate,boundingRect);
  13890. }
  13891.  
  13892. /* method: SetBoundingRect */
  13893. void   SetBoundingRect(Environment *ev,
  13894.         HICoordinateSystem coordinate,
  13895.         Rect* newBoundingRect)
  13896. {
  13897.    SOM_ResolveD(this,HIPopUpButton,HIObject,SetBoundingRect)
  13898.     (this,ev,coordinate,newBoundingRect);
  13899. }
  13900.  
  13901. /* method: SetPosition */
  13902. void   SetPosition(Environment *ev,
  13903.         HICoordinateSystem coordinate,
  13904.         Point* newPosition)
  13905. {
  13906.    SOM_ResolveD(this,HIPopUpButton,HIObject,SetPosition)
  13907.     (this,ev,coordinate,newPosition);
  13908. }
  13909.  
  13910. /* method: SetSize */
  13911. void   SetSize(Environment *ev,
  13912.         SInt16 width,
  13913.         SInt16 height)
  13914. {
  13915.    SOM_ResolveD(this,HIPopUpButton,HIObject,SetSize)
  13916.     (this,ev,width,height);
  13917. }
  13918.  
  13919. /* method: GetUpdateRect */
  13920. void   GetUpdateRect(Environment *ev,
  13921.         HICoordinateSystem coordinate,
  13922.         Rect* updateRect)
  13923. {
  13924.    SOM_ResolveD(this,HIPopUpButton,HIObject,GetUpdateRect)
  13925.     (this,ev,coordinate,updateRect);
  13926. }
  13927.  
  13928. /* method: Enable */
  13929. void   Enable(Environment *ev)
  13930. {
  13931.    SOM_ResolveD(this,HIPopUpButton,HIObject,Enable)
  13932.     (this,ev);
  13933. }
  13934.  
  13935. /* method: Disable */
  13936. void   Disable(Environment *ev)
  13937. {
  13938.    SOM_ResolveD(this,HIPopUpButton,HIObject,Disable)
  13939.     (this,ev);
  13940. }
  13941.  
  13942. /* method: IsEnabled */
  13943. boolean   IsEnabled(Environment *ev)
  13944. {
  13945.    return SOM_ResolveD(this,HIPopUpButton,HIObject,IsEnabled)
  13946.     (this,ev);
  13947. }
  13948.  
  13949. /* method: Show */
  13950. void   Show(Environment *ev)
  13951. {
  13952.    SOM_ResolveD(this,HIPopUpButton,HIObject,Show)
  13953.     (this,ev);
  13954. }
  13955.  
  13956. /* method: Hide */
  13957. void   Hide(Environment *ev)
  13958. {
  13959.    SOM_ResolveD(this,HIPopUpButton,HIObject,Hide)
  13960.     (this,ev);
  13961. }
  13962.  
  13963. /* method: IsVisible */
  13964. boolean   IsVisible(Environment *ev)
  13965. {
  13966.    return SOM_ResolveD(this,HIPopUpButton,HIObject,IsVisible)
  13967.     (this,ev);
  13968. }
  13969.  
  13970. /* method: HandleAppleEvent */
  13971. OSStatus   HandleAppleEvent(Environment *ev,
  13972.         AEEventClass eventClass,
  13973.         AEEventID eventID,
  13974.         AppleEvent* theEvent,
  13975.         AppleEvent* reply,
  13976.         AEHandlerTableRef handlerTableRef)
  13977. {
  13978.    return SOM_ResolveD(this,HIPopUpButton,HIObject,HandleAppleEvent)
  13979.     (this,ev,eventClass,eventID,theEvent,reply,handlerTableRef);
  13980. }
  13981.  
  13982. /* method: HandleActivate */
  13983. OSStatus   HandleActivate(Environment *ev,
  13984.         AppleEvent* theEvent,
  13985.         AppleEvent* reply,
  13986.         AEHandlerTableRef handlerTableRef)
  13987. {
  13988.    return SOM_ResolveD(this,HIPopUpButton,HIObject,HandleActivate)
  13989.     (this,ev,theEvent,reply,handlerTableRef);
  13990. }
  13991.  
  13992. /* method: HandleDeactivate */
  13993. OSStatus   HandleDeactivate(Environment *ev,
  13994.         AppleEvent* theEvent,
  13995.         AppleEvent* reply,
  13996.         AEHandlerTableRef handlerTableRef)
  13997. {
  13998.    return SOM_ResolveD(this,HIPopUpButton,HIObject,HandleDeactivate)
  13999.     (this,ev,theEvent,reply,handlerTableRef);
  14000. }
  14001.  
  14002. /* method: HandleNavigation */
  14003. OSStatus   HandleNavigation(Environment *ev,
  14004.         SInt8 key,
  14005.         SInt8 keyCode,
  14006.         EventModifiers modifiers,
  14007.         AppleEvent* theEvent,
  14008.         AppleEvent* reply,
  14009.         AEHandlerTableRef handlerTableRef)
  14010. {
  14011.    return SOM_ResolveD(this,HIPopUpButton,HIObject,HandleNavigation)
  14012.     (this,ev,key,keyCode,modifiers,theEvent,reply,handlerTableRef);
  14013. }
  14014.  
  14015. /* method: HandleMouseDownInContent */
  14016. OSStatus   HandleMouseDownInContent(Environment *ev,
  14017.         Point* portLocalWhere,
  14018.         EventModifiers modifiers,
  14019.         AppleEvent* theEvent,
  14020.         AppleEvent* reply,
  14021.         AEHandlerTableRef handlerTableRef)
  14022. {
  14023.    return SOM_ResolveD(this,HIPopUpButton,HIObject,HandleMouseDownInContent)
  14024.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  14025. }
  14026.  
  14027. /* method: HandleMouseMovedInContent */
  14028. OSStatus   HandleMouseMovedInContent(Environment *ev,
  14029.         Point* portLocalWhere,
  14030.         EventModifiers modifiers,
  14031.         AppleEvent* theEvent,
  14032.         AppleEvent* reply,
  14033.         AEHandlerTableRef handlerTableRef)
  14034. {
  14035.    return SOM_ResolveD(this,HIPopUpButton,HIObject,HandleMouseMovedInContent)
  14036.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  14037. }
  14038.  
  14039. /* method: HandleMouseStoppedMovingInContent */
  14040. OSStatus   HandleMouseStoppedMovingInContent(Environment *ev,
  14041.         Point* portLocalWhere,
  14042.         EventModifiers modifiers,
  14043.         AppleEvent* theEvent,
  14044.         AppleEvent* reply,
  14045.         AEHandlerTableRef handlerTableRef)
  14046. {
  14047.    return SOM_ResolveD(this,HIPopUpButton,HIObject,HandleMouseStoppedMovingInContent)
  14048.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  14049. }
  14050.  
  14051. /* method: HandleMouseUpInContent */
  14052. OSStatus   HandleMouseUpInContent(Environment *ev,
  14053.         Point* portLocalWhere,
  14054.         EventModifiers modifiers,
  14055.         AppleEvent* theEvent,
  14056.         AppleEvent* reply,
  14057.         AEHandlerTableRef handlerTableRef)
  14058. {
  14059.    return SOM_ResolveD(this,HIPopUpButton,HIObject,HandleMouseUpInContent)
  14060.     (this,ev,portLocalWhere,modifiers,theEvent,reply,handlerTableRef);
  14061. }
  14062.  
  14063. /* method: TakeUserInputFocus */
  14064. void   TakeUserInputFocus(Environment *ev)
  14065. {
  14066.    SOM_ResolveD(this,HIPopUpButton,HIObject,TakeUserInputFocus)
  14067.     (this,ev);
  14068. }
  14069.  
  14070. /* method: ReleaseUserInputFocus */
  14071. void   ReleaseUserInputFocus(Environment *ev)
  14072. {
  14073.    SOM_ResolveD(this,HIPopUpButton,HIObject,ReleaseUserInputFocus)
  14074.     (this,ev);
  14075. }
  14076.  
  14077. /* method: HasUserInputFocus */
  14078. boolean   HasUserInputFocus(Environment *ev)
  14079. {
  14080.    return SOM_ResolveD(this,HIPopUpButton,HIObject,HasUserInputFocus)
  14081.     (this,ev);
  14082. }
  14083.  
  14084. /* method: CanReleaseUserInputFocus */
  14085. boolean   CanReleaseUserInputFocus(Environment *ev)
  14086. {
  14087.    return SOM_ResolveD(this,HIPopUpButton,HIObject,CanReleaseUserInputFocus)
  14088.     (this,ev);
  14089. }
  14090.  
  14091. /* method: SetUserInputFocusFlags */
  14092. void   SetUserInputFocusFlags(Environment *ev,
  14093.         HIUserInputFocusFlags flags)
  14094. {
  14095.    SOM_ResolveD(this,HIPopUpButton,HIObject,SetUserInputFocusFlags)
  14096.     (this,ev,flags);
  14097. }
  14098.  
  14099. /* method: GetUserInputFocusFlags */
  14100. HIUserInputFocusFlags   GetUserInputFocusFlags(Environment *ev)
  14101. {
  14102.    return SOM_ResolveD(this,HIPopUpButton,HIObject,GetUserInputFocusFlags)
  14103.     (this,ev);
  14104. }
  14105.  
  14106. /* method: SetTitle */
  14107. OSStatus   SetTitle(Environment *ev,
  14108.         ConstHIImageRef title,
  14109.         HIAdoptionFlags disposalAdoptionFlags)
  14110. {
  14111.    return SOM_ResolveD(this,HIPopUpButton,HIObject,SetTitle)
  14112.     (this,ev,title,disposalAdoptionFlags);
  14113. }
  14114.  
  14115. /* method: GetTitle */
  14116. OSStatus   GetTitle(Environment *ev,
  14117.         HIImageRef* title)
  14118. {
  14119.    return SOM_ResolveD(this,HIPopUpButton,HIObject,GetTitle)
  14120.     (this,ev,title);
  14121. }
  14122.  
  14123. /* method: Draw */
  14124. void   Draw(Environment *ev,
  14125.         CGrafPtr whichPort,
  14126.         RgnHandle drawRgn)
  14127. {
  14128.    SOM_ResolveD(this,HIPopUpButton,HIObject,Draw)
  14129.     (this,ev,whichPort,drawRgn);
  14130. }
  14131.  
  14132. /* method: Erase */
  14133. void   Erase(Environment *ev,
  14134.         CGrafPtr whichPort,
  14135.         RgnHandle eraseRgn)
  14136. {
  14137.    SOM_ResolveD(this,HIPopUpButton,HIObject,Erase)
  14138.     (this,ev,whichPort,eraseRgn);
  14139. }
  14140.  
  14141. /* method: Invalidate */
  14142. void   Invalidate(Environment *ev)
  14143. {
  14144.    SOM_ResolveD(this,HIPopUpButton,HIObject,Invalidate)
  14145.     (this,ev);
  14146. }
  14147.  
  14148. /* method: GetDrawingMode */
  14149. HIDrawingMode   GetDrawingMode(Environment *ev)
  14150. {
  14151.    return SOM_ResolveD(this,HIPopUpButton,HIObject,GetDrawingMode)
  14152.     (this,ev);
  14153. }
  14154.  
  14155. /* method: SetDrawingMode */
  14156. void   SetDrawingMode(Environment *ev,
  14157.         HIDrawingMode drawingMode)
  14158. {
  14159.    SOM_ResolveD(this,HIPopUpButton,HIObject,SetDrawingMode)
  14160.     (this,ev,drawingMode);
  14161. }
  14162.  
  14163. /* method: SetBackgroundPattern */
  14164. void   SetBackgroundPattern(Environment *ev,
  14165.         PixPatHandle backgroundPattern)
  14166. {
  14167.    SOM_ResolveD(this,HIPopUpButton,HIObject,SetBackgroundPattern)
  14168.     (this,ev,backgroundPattern);
  14169. }
  14170.  
  14171. /* method: GetBackgroundPattern */
  14172. PixPatHandle   GetBackgroundPattern(Environment *ev)
  14173. {
  14174.    return SOM_ResolveD(this,HIPopUpButton,HIObject,GetBackgroundPattern)
  14175.     (this,ev);
  14176. }
  14177.  
  14178. /* method: Cut */
  14179. void   Cut(Environment *ev)
  14180. {
  14181.    SOM_ResolveD(this,HIPopUpButton,HIObject,Cut)
  14182.     (this,ev);
  14183. }
  14184.  
  14185. /* method: Copy */
  14186. void   Copy(Environment *ev)
  14187. {
  14188.    SOM_ResolveD(this,HIPopUpButton,HIObject,Copy)
  14189.     (this,ev);
  14190. }
  14191.  
  14192. /* method: Paste */
  14193. void   Paste(Environment *ev)
  14194. {
  14195.    SOM_ResolveD(this,HIPopUpButton,HIObject,Paste)
  14196.     (this,ev);
  14197. }
  14198.  
  14199. /* method: Clear */
  14200. void   Clear(Environment *ev)
  14201. {
  14202.    SOM_ResolveD(this,HIPopUpButton,HIObject,Clear)
  14203.     (this,ev);
  14204. }
  14205.  
  14206. /* method: GetClipboardSupportFlags */
  14207. HIClipboardSupportFlags   GetClipboardSupportFlags(Environment *ev)
  14208. {
  14209.    return SOM_ResolveD(this,HIPopUpButton,HIObject,GetClipboardSupportFlags)
  14210.     (this,ev);
  14211. }
  14212.  
  14213. /* method: AddStateChangeCallback */
  14214. OSStatus   AddStateChangeCallback(Environment *ev,
  14215.         HIStateChangeCallbackProcPtr changedStateCallback,
  14216.         HIStateChangeCallbackRef* newCallbackRef)
  14217. {
  14218.    return SOM_ResolveD(this,HIPopUpButton,HIObject,AddStateChangeCallback)
  14219.     (this,ev,changedStateCallback,newCallbackRef);
  14220. }
  14221.  
  14222. /* method: RemoveStateChangeCallback */
  14223. OSStatus   RemoveStateChangeCallback(Environment *ev,
  14224.         HIStateChangeCallbackRef callbackRefToRemove)
  14225. {
  14226.    return SOM_ResolveD(this,HIPopUpButton,HIObject,RemoveStateChangeCallback)
  14227.     (this,ev,callbackRefToRemove);
  14228. }
  14229.  
  14230. /* noself procedure: GetHIObjectFromRefLabel */
  14231. static OSStatus   GetHIObjectFromRefLabel(Environment *ev,
  14232.         RefLabel* identifier,
  14233.         ItemCount requestedObjects,
  14234.         ItemCount* totalObjects,
  14235.         HIObject** theObjects)
  14236. {
  14237. return ((somTD_HIPopUpButton_GetHIObjectFromRefLabel)HIObjectClassData.GetHIObjectFromRefLabel)
  14238.     (ev,identifier,requestedObjects,totalObjects,theObjects);
  14239. }
  14240.  
  14241. /* noself procedure: GetNewHIObject */
  14242. static OSStatus   GetNewHIObject(Environment *ev,
  14243.         AESubDesc* objectInitializer,
  14244.         HIObject** newObject)
  14245. {
  14246. return ((somTD_HIPopUpButton_GetNewHIObject)HIObjectClassData.GetNewHIObject)
  14247.     (ev,objectInitializer,newObject);
  14248. }
  14249.  
  14250. /* noself procedure: GetNewHIObjectFromResource */
  14251. static OSStatus   GetNewHIObjectFromResource(Environment *ev,
  14252.         ResID objectInitializerResourceID,
  14253.         HIObject** newObject)
  14254. {
  14255. return ((somTD_HIPopUpButton_GetNewHIObjectFromResource)HIObjectClassData.GetNewHIObjectFromResource)
  14256.     (ev,objectInitializerResourceID,newObject);
  14257. }
  14258.  
  14259. /* method: DrawContent */
  14260. void   DrawContent(Environment *ev,
  14261.         CGrafPtr whichPort,
  14262.         RgnHandle drawRgn)
  14263. {
  14264.    SOM_ResolveD(this,HIPopUpButton,HIObject,DrawContent)
  14265.     (this,ev,whichPort,drawRgn);
  14266. }
  14267.  
  14268. /* method: EraseContent */
  14269. void   EraseContent(Environment *ev,
  14270.         CGrafPtr whichPort,
  14271.         RgnHandle regionToErase)
  14272. {
  14273.    SOM_ResolveD(this,HIPopUpButton,HIObject,EraseContent)
  14274.     (this,ev,whichPort,regionToErase);
  14275. }
  14276.  
  14277. /* method: TranslatePoint */
  14278. void   TranslatePoint(Environment *ev,
  14279.         HICoordinateSystem translateFrom,
  14280.         HICoordinateSystem translateTo,
  14281.         Point* sourcePoint,
  14282.         Point* translatedPoint)
  14283. {
  14284.    SOM_ResolveD(this,HIPopUpButton,HIObject,TranslatePoint)
  14285.     (this,ev,translateFrom,translateTo,sourcePoint,translatedPoint);
  14286. }
  14287.  
  14288. /* method: TranslateRect */
  14289. void   TranslateRect(Environment *ev,
  14290.         HICoordinateSystem translateFrom,
  14291.         HICoordinateSystem translateTo,
  14292.         Rect* sourceRect,
  14293.         Rect* translatedRect)
  14294. {
  14295.    SOM_ResolveD(this,HIPopUpButton,HIObject,TranslateRect)
  14296.     (this,ev,translateFrom,translateTo,sourceRect,translatedRect);
  14297. }
  14298.  
  14299. /* method: StateChanged */
  14300. void   StateChanged(Environment *ev,
  14301.         HIStateChangeCodeCreator selectorCreator,
  14302.         HIStateChangeCode changedCode)
  14303. {
  14304.    SOM_ResolveD(this,HIPopUpButton,HIObject,StateChanged)
  14305.     (this,ev,selectorCreator,changedCode);
  14306. }
  14307.  
  14308. /* method: SetClipboardSupportFlags */
  14309. void   SetClipboardSupportFlags(Environment *ev,
  14310.         HIClipboardSupportFlags flags)
  14311. {
  14312.    SOM_ResolveD(this,HIPopUpButton,HIObject,SetClipboardSupportFlags)
  14313.     (this,ev,flags);
  14314. }
  14315.  
  14316. /* method: Verify */
  14317. OSStatus   Verify(Environment *ev)
  14318. {
  14319.    return SOM_ResolveD(this,HIPopUpButton,HIObject,Verify)
  14320.     (this,ev);
  14321. }
  14322.  
  14323. /* method: somInit */
  14324. void   somInit()
  14325. {
  14326.    SOM_ResolveD(this,HIPopUpButton,SOMObject,somInit)
  14327.     (this);
  14328. }
  14329.  
  14330. /* method: somUninit */
  14331. void   somUninit()
  14332. {
  14333.    SOM_ResolveD(this,HIPopUpButton,SOMObject,somUninit)
  14334.     (this);
  14335. }
  14336.  
  14337. /* method: somDuplicateReference */
  14338. SOMObject*   somDuplicateReference()
  14339. {
  14340.    return SOM_ResolveD(this,HIPopUpButton,SOMObject,somDuplicateReference)
  14341.     (this);
  14342. }
  14343.  
  14344. /* method: somCompareReference */
  14345. boolean   somCompareReference(SOMObject* anObject)
  14346. {
  14347.    return SOM_ResolveD(this,HIPopUpButton,SOMObject,somCompareReference)
  14348.     (this,anObject);
  14349. }
  14350.  
  14351. /* method: somRelease */
  14352. SOMObject*   somRelease()
  14353. {
  14354.    return SOM_ResolveD(this,HIPopUpButton,SOMObject,somRelease)
  14355.     (this);
  14356. }
  14357.  
  14358. /* method: somFree */
  14359. void   somFree()
  14360. {
  14361.    SOM_ResolveD(this,HIPopUpButton,SOMObject,somFree)
  14362.     (this);
  14363. }
  14364.  
  14365. /* method: somCanDelete */
  14366. boolean   somCanDelete()
  14367. {
  14368.    return SOM_ResolveD(this,HIPopUpButton,SOMObject,somCanDelete)
  14369.     (this);
  14370. }
  14371.  
  14372. /* method: somGetClass */
  14373. SOMClass*   somGetClass()
  14374. {
  14375.    return SOM_ResolveD(this,HIPopUpButton,SOMObject,somGetClass)
  14376.     (this);
  14377. }
  14378.  
  14379. /* method: somGetClassName */
  14380. corbastring   somGetClassName()
  14381. {
  14382.    return SOM_ResolveD(this,HIPopUpButton,SOMObject,somGetClassName)
  14383.     (this);
  14384. }
  14385.  
  14386. /* method: somGetSize */
  14387. long   somGetSize()
  14388. {
  14389.    return SOM_ResolveD(this,HIPopUpButton,SOMObject,somGetSize)
  14390.     (this);
  14391. }
  14392.  
  14393. /* method: somIsA */
  14394. boolean   somIsA(SOMClass* aClassObj)
  14395. {
  14396.    return SOM_ResolveD(this,HIPopUpButton,SOMObject,somIsA)
  14397.     (this,aClassObj);
  14398. }
  14399.  
  14400. /* method: somRespondsTo */
  14401. boolean   somRespondsTo(somId mId)
  14402. {
  14403.    return SOM_ResolveD(this,HIPopUpButton,SOMObject,somRespondsTo)
  14404.     (this,mId);
  14405. }
  14406.  
  14407. /* method: somIsInstanceOf */
  14408. boolean   somIsInstanceOf(SOMClass* aClassObj)
  14409. {
  14410.    return SOM_ResolveD(this,HIPopUpButton,SOMObject,somIsInstanceOf)
  14411.     (this,aClassObj);
  14412. }
  14413.  
  14414. /* va_list method: somDispatch */
  14415. /* the va_list invocation form */
  14416. boolean   HIPopUpButton_somDispatch(somToken* retValue,
  14417.         somId methodId,
  14418.         va_list ap)
  14419. {
  14420.    return SOM_ResolveD(this,HIPopUpButton,SOMObject,somDispatch)
  14421.     (this,retValue,methodId,ap);
  14422. }
  14423.  
  14424. /* the varargs invocation form */
  14425. boolean   somDispatch(somToken* retValue,
  14426.         somId methodId,
  14427.         ...)
  14428. {
  14429.    va_list ap;
  14430.    va_start(ap, methodId);
  14431.       boolean __somResult = 
  14432.       (boolean) SOM_ResolveD(this,HIPopUpButton,SOMObject,somDispatch)
  14433.     (this,retValue,methodId,ap);
  14434.    va_end(ap);
  14435.    return __somResult;
  14436. }
  14437.  
  14438. /* va_list method: somClassDispatch */
  14439. /* the va_list invocation form */
  14440. boolean   HIPopUpButton_somClassDispatch(SOMClass* clsObj,
  14441.         somToken* retValue,
  14442.         somId methodId,
  14443.         va_list ap)
  14444. {
  14445.    return SOM_ResolveD(this,HIPopUpButton,SOMObject,somClassDispatch)
  14446.     (this,clsObj,retValue,methodId,ap);
  14447. }
  14448.  
  14449. /* the varargs invocation form */
  14450. boolean   somClassDispatch(SOMClass* clsObj,
  14451.         somToken* retValue,
  14452.         somId methodId,
  14453.         ...)
  14454. {
  14455.    va_list ap;
  14456.    va_start(ap, methodId);
  14457.       boolean __somResult = 
  14458.       (boolean) SOM_ResolveD(this,HIPopUpButton,SOMObject,somClassDispatch)
  14459.     (this,clsObj,retValue,methodId,ap);
  14460.    va_end(ap);
  14461.    return __somResult;
  14462. }
  14463.  
  14464. /* method: somCastObj */
  14465. boolean   somCastObj(SOMClass* cls)
  14466. {
  14467.    return SOM_ResolveD(this,HIPopUpButton,SOMObject,somCastObj)
  14468.     (this,cls);
  14469. }
  14470.  
  14471. /* method: somResetObj */
  14472. boolean   somResetObj()
  14473. {
  14474.    return SOM_ResolveD(this,HIPopUpButton,SOMObject,somResetObj)
  14475.     (this);
  14476. }
  14477.  
  14478. /* method: somPrintSelf */
  14479. SOMObject*   somPrintSelf()
  14480. {
  14481.    return SOM_ResolveD(this,HIPopUpButton,SOMObject,somPrintSelf)
  14482.     (this);
  14483. }
  14484.  
  14485. /* method: somDumpSelf */
  14486. void   somDumpSelf(long level)
  14487. {
  14488.    SOM_ResolveD(this,HIPopUpButton,SOMObject,somDumpSelf)
  14489.     (this,level);
  14490. }
  14491.  
  14492. /* method: somDumpSelfInt */
  14493. void   somDumpSelfInt(long level)
  14494. {
  14495.    SOM_ResolveD(this,HIPopUpButton,SOMObject,somDumpSelfInt)
  14496.     (this,level);
  14497. }
  14498.  
  14499. };   /* HIPopUpButton */
  14500.  
  14501.  
  14502.  
  14503. #endif       /* SOM_HIPopUpButton_xh */
  14504.